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}";