diff --git a/pkgs/development/python-modules/passlib/default.nix b/pkgs/development/python-modules/passlib/default.nix new file mode 100644 index 000000000000..bdf51461355d --- /dev/null +++ b/pkgs/development/python-modules/passlib/default.nix @@ -0,0 +1,25 @@ +{ lib +, buildPythonPackage +, fetchPypi +, nose +, bcrypt +}: + +buildPythonPackage rec { + pname = "passlib"; + version = "1.6.5"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "1z27wdxs5rj5xhhqfzvzn3yg682irkxw6dcs5jj7mcf97psk8gd8"; + }; + + checkInputs = [ nose ]; + propagatedBuildInputs = [ bcrypt ]; + + meta = { + description = "A password hashing library for Python"; + homepage = https://code.google.com/p/passlib/; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 23c53798e178..86f341969dc1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7195,23 +7195,7 @@ in { }; }; - passlib = buildPythonPackage rec { - version = "1.6.5"; - name = "passlib-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/passlib/passlib-${version}.tar.gz"; - sha256 = "1z27wdxs5rj5xhhqfzvzn3yg682irkxw6dcs5jj7mcf97psk8gd8"; - }; - - buildInputs = with self; [ nose ]; - propagatedBuildInputs = with self; [ bcrypt ]; - - meta = { - description = "A password hashing library for Python"; - homepage = https://code.google.com/p/passlib/; - }; - }; + passlib = callPackage ../development/python-modules/passlib { }; path-and-address = buildPythonPackage rec { version = "2.0.1";