diff --git a/pkgs/development/python-modules/pyrsistent/default.nix b/pkgs/development/python-modules/pyrsistent/default.nix new file mode 100644 index 00000000000..376b306cbb2 --- /dev/null +++ b/pkgs/development/python-modules/pyrsistent/default.nix @@ -0,0 +1,32 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, six +, pytest +, hypothesis +}: + +buildPythonPackage rec { + pname = "pyrsistent"; + version = "0.11.12"; + + src = fetchPypi { + inherit pname version; + sha256 = "0jgyhkkq36wn36rymn4jiyqh2vdslmradq4a2mjkxfbk2cz6wpi5"; + }; + + propagatedBuildInputs = [ six ]; + buildInputs = [ pytest hypothesis ]; + + checkPhase = '' + py.test + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/tobgu/pyrsistent/; + description = "Persistent/Functional/Immutable data structures"; + license = licenses.mit; + maintainers = with maintainers; [ desiderius ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2bd7588a73b..4d47e0ac164 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3396,28 +3396,7 @@ in { Pyro = callPackage ../development/python-modules/pyro { }; - pyrsistent = buildPythonPackage (rec { - name = "pyrsistent-0.11.12"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pyrsistent/${name}.tar.gz"; - sha256 = "0jgyhkkq36wn36rymn4jiyqh2vdslmradq4a2mjkxfbk2cz6wpi5"; - }; - - propagatedBuildInputs = with self; [ six ]; - buildInputs = with self; [ pytest hypothesis ]; - - checkPhase = '' - py.test - ''; - - meta = { - homepage = https://github.com/tobgu/pyrsistent/; - description = "Persistent/Functional/Immutable data structures"; - license = licenses.mit; - maintainers = with maintainers; [ desiderius ]; - }; - }); + pyrsistent = callPackage ../development/python-modules/pyrsistent { }; PyRSS2Gen = buildPythonPackage (rec { pname = "PyRSS2Gen";