diff --git a/pkgs/development/python-modules/flup/default.nix b/pkgs/development/python-modules/flup/default.nix new file mode 100644 index 000000000000..8256f5a1063d --- /dev/null +++ b/pkgs/development/python-modules/flup/default.nix @@ -0,0 +1,23 @@ +{ stdenv +, buildPythonPackage +, isPy3k +, fetchPypi +}: + +buildPythonPackage rec { + pname = "flup"; + version = "1.0.3"; + disabled = isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "5eb09f26eb0751f8380d8ac43d1dfb20e1d42eca0fa45ea9289fa532a79cd159"; + }; + + meta = with stdenv.lib; { + homepage = "http://trac.saddi.com/flup"; + description = "FastCGI Python module set"; + license = licenses.bsd0; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 12e2d0e84560..c7cc5e7fbdd0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2305,20 +2305,8 @@ in { license = licenses.mit; }; }; - flup = buildPythonPackage (rec { - name = "flup-1.0.2"; - disabled = isPy3k; - src = pkgs.fetchurl { - url = "http://www.saddi.com/software/flup/dist/${name}.tar.gz"; - sha256 = "1nbx174g40l1z3a8arw72qz05a1qxi3didp9wm7kvkn1bxx33bab"; - }; - - meta = { - homepage = "http://trac.saddi.com/flup"; - description = "FastCGI Python module set"; - }; - }); + flup = callPackage ../development/python-modules/flup { }; fn = callPackage ../development/python-modules/fn { };