diff --git a/pkgs/development/python-modules/process-tests/default.nix b/pkgs/development/python-modules/process-tests/default.nix new file mode 100644 index 000000000000..8f8bbc59d4fe --- /dev/null +++ b/pkgs/development/python-modules/process-tests/default.nix @@ -0,0 +1,24 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "process-tests"; + version = "1.2.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "65c9d7a0260f31c15b4a22a851757e61f7072d0557db5f8a976112fbe81ff7e9"; + }; + + # No tests + doCheck = false; + + meta = with stdenv.lib; { + description = "Tools for testing processes"; + license = licenses.bsd2; + homepage = https://github.com/ionelmc/python-process-tests; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5b808735799b..5d31caa7b146 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3431,25 +3431,7 @@ in { pynzb = callPackage ../development/python-modules/pynzb { }; - process-tests = buildPythonPackage rec { - pname = "process-tests"; - name = "${pname}-${version}"; - version = "1.2.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/${pname}/${name}.tar.gz"; - sha256 = "65c9d7a0260f31c15b4a22a851757e61f7072d0557db5f8a976112fbe81ff7e9"; - }; - - # No tests - doCheck = false; - - meta = { - description = "Tools for testing processes"; - license = licenses.bsd2; - homepage = https://github.com/ionelmc/python-process-tests; - }; - }; + process-tests = callPackage ../development/python-modules/process-tests { }; progressbar = callPackage ../development/python-modules/progressbar {};