about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/confuse/default.nix
blob: 8f1c1754056a4883b2834b2facf876135d2001d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ buildPythonPackage
, enum34
, fetchPypi
, isPy27
, lib
, pathlib
, pyyaml
}:

buildPythonPackage rec {
  pname = "confuse";
  version = "1.4.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-kvwEUcbiwnMqw2PQ9Z1+pgir3b7QYt2o6Y6ajJhs5GQ=";
  };

  propagatedBuildInputs = [ pyyaml ] ++ lib.optionals isPy27 [ enum34 pathlib ] ;

  meta = with lib; {
    description = "Confuse is a configuration library for Python that uses YAML.";
    homepage = "https://github.com/beetbox/confuse";
    license = licenses.mit;
    maintainers = with maintainers; [ lovesegfault ];
  };
}