1{ buildPythonPackage
2, enum34
3, fetchPypi
4, isPy27
5, lib
6, pathlib
7, pyyaml
8}:
9
10buildPythonPackage rec {
11 pname = "confuse";
12 version = "1.4.0";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "sha256-kvwEUcbiwnMqw2PQ9Z1+pgir3b7QYt2o6Y6ajJhs5GQ=";
17 };
18
19 propagatedBuildInputs = [ pyyaml ] ++ lib.optionals isPy27 [ enum34 pathlib ] ;
20
21 meta = with lib; {
22 description = "Confuse is a configuration library for Python that uses YAML.";
23 homepage = "https://github.com/beetbox/confuse";
24 license = licenses.mit;
25 maintainers = with maintainers; [ lovesegfault ];
26 };
27}