From b889d7a43fd49798a315f9a4c7c05b90b8c600d0 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Wed, 17 Oct 2018 15:19:33 -0400 Subject: [PATCH] pythonPackages.logutils: refactor move to python-modules --- .../python-modules/logutils/default.nix | 21 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 10 +-------- 2 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 pkgs/development/python-modules/logutils/default.nix diff --git a/pkgs/development/python-modules/logutils/default.nix b/pkgs/development/python-modules/logutils/default.nix new file mode 100644 index 000000000000..d6595b19db6f --- /dev/null +++ b/pkgs/development/python-modules/logutils/default.nix @@ -0,0 +1,21 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "logutils"; + version = "0.3.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "173w55fg3hp5dhx7xvssmgqkcv5fjlaik11w5dah2fxygkjvhhj0"; + }; + + meta = with stdenv.lib; { + description = "Logging utilities"; + homepage = http://code.google.com/p/logutils/; + license = licenses.bsd0; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fffd3eec2097..8ac69021525e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3039,15 +3039,7 @@ in { nine = callPackage ../development/python-modules/nine { }; - logutils = buildPythonPackage rec { - name = "logutils-${version}"; - version = "0.3.3"; - - src = pkgs.fetchurl { - url = "mirror://pypi/l/logutils/${name}.tar.gz"; - sha256 = "173w55fg3hp5dhx7xvssmgqkcv5fjlaik11w5dah2fxygkjvhhj0"; - }; - }; + logutils = callPackage ../development/python-modules/logutils { }; ldappool = callPackage ../development/python-modules/ldappool { };