2020-06-29 20:54:08 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, enum34
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, lib
|
|
|
|
, pathlib
|
|
|
|
, pyyaml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "confuse";
|
2021-07-03 07:41:23 +00:00
|
|
|
version = "1.5.0";
|
2020-06-29 20:54:08 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-07-03 07:41:23 +00:00
|
|
|
sha256 = "sha256-kvvKHHBhESDqciNy4MBxwNNCp195a0veS/A0jqSfAi4=";
|
2020-06-29 20:54:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|