diff --git a/pkgs/development/python-modules/pickleshare/default.nix b/pkgs/development/python-modules/pickleshare/default.nix new file mode 100644 index 000000000000..4ca421847658 --- /dev/null +++ b/pkgs/development/python-modules/pickleshare/default.nix @@ -0,0 +1,30 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pathpy +, pathlib2 +, pythonOlder +}: + +buildPythonPackage rec { + version = "0.7.4"; + pname = "pickleshare"; + + src = fetchPypi { + inherit pname version; + sha256 = "84a9257227dfdd6fe1b4be1319096c20eb85ff1e82c7932f36efccfe1b09737b"; + }; + + propagatedBuildInputs = [ pathpy ] + ++ stdenv.lib.optional (pythonOlder "3.4") pathlib2; + + # No proper test suite + doCheck = false; + + meta = with stdenv.lib; { + description = "Tiny 'shelve'-like database with concurrency support"; + homepage = https://github.com/vivainio/pickleshare; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e46b7faab719..afa9626ddede 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3141,26 +3141,7 @@ in { pgspecial = callPackage ../development/python-modules/pgspecial { }; - pickleshare = buildPythonPackage rec { - version = "0.7.4"; - name = "pickleshare-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pickleshare/${name}.tar.gz"; - sha256 = "84a9257227dfdd6fe1b4be1319096c20eb85ff1e82c7932f36efccfe1b09737b"; - }; - - propagatedBuildInputs = with self; [pathpy] ++ optional (pythonOlder "3.4") pathlib2; - - # No proper test suite - doCheck = false; - - meta = { - description = "Tiny 'shelve'-like database with concurrency support"; - homepage = https://github.com/vivainio/pickleshare; - license = licenses.mit; - }; - }; + pickleshare = callPackage ../development/python-modules/pickleshare { }; piep = buildPythonPackage rec { version = "0.8.0";