From 1f472f4a36fa97ae665589e868915190ce2e87c8 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 11:47:30 -0400 Subject: [PATCH] pythonPackages.safe: refactor move to python-modules --- .../python-modules/safe/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 17 +------------ 2 files changed, 25 insertions(+), 16 deletions(-) create mode 100644 pkgs/development/python-modules/safe/default.nix diff --git a/pkgs/development/python-modules/safe/default.nix b/pkgs/development/python-modules/safe/default.nix new file mode 100644 index 000000000000..f7f6f7eabf91 --- /dev/null +++ b/pkgs/development/python-modules/safe/default.nix @@ -0,0 +1,24 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, nose +}: + +buildPythonPackage rec { + version = "0.4"; + pname = "Safe"; + + src = fetchPypi { + inherit pname version; + sha256 = "a2fdac9fe8a9dcf02b438201d6ce0b7be78f85dc6492d03edfb89be2adf489de"; + }; + + buildInputs = [ nose ]; + + meta = with stdenv.lib; { + homepage = "https://github.com/lepture/safe"; + license = licenses.bsd3; + description = "Check password strength"; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 79f8900f76b3..a01278025794 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2145,22 +2145,7 @@ in { joblib = callPackage ../development/python-modules/joblib { }; - safe = buildPythonPackage rec { - version = "0.4"; - name = "Safe-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/S/Safe/${name}.tar.gz"; - sha256 = "a2fdac9fe8a9dcf02b438201d6ce0b7be78f85dc6492d03edfb89be2adf489de"; - }; - - buildInputs = with self; [ nose ]; - meta = { - homepage = "https://github.com/lepture/safe"; - license = licenses.bsd3; - description = "Check password strength"; - }; - }; + safe = callPackage ../development/python-modules/safe { }; samplerate = buildPythonPackage rec { name = "scikits.samplerate-${version}";