From b2d12f3db253fa75d1466c9e889aaf8d1257fb65 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Mon, 29 Jun 2020 13:54:08 -0700 Subject: [PATCH] python3Packages.confuse: init at 1.4.0 --- .../python-modules/confuse/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/python-modules/confuse/default.nix diff --git a/pkgs/development/python-modules/confuse/default.nix b/pkgs/development/python-modules/confuse/default.nix new file mode 100644 index 000000000000..8f1c1754056a --- /dev/null +++ b/pkgs/development/python-modules/confuse/default.nix @@ -0,0 +1,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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 05abf503128c..de985d4aa158 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1332,6 +1332,8 @@ in { confluent-kafka = callPackage ../development/python-modules/confluent-kafka { }; + confuse = callPackage ../development/python-modules/confuse { }; + connexion = callPackage ../development/python-modules/connexion { }; consonance = callPackage ../development/python-modules/consonance { };