diff --git a/pkgs/development/python-modules/sh/default.nix b/pkgs/development/python-modules/sh/default.nix new file mode 100644 index 000000000000..37388bf46900 --- /dev/null +++ b/pkgs/development/python-modules/sh/default.nix @@ -0,0 +1,24 @@ +{ stdenv, buildPythonPackage, fetchPypi, coverage }: + +buildPythonPackage rec { + pname = "sh"; + version = "1.12.14"; + + src = fetchPypi { + inherit pname version; + sha256 = "1z2hx357xp3v4cv44xmqp7lli3frndqpyfmpbxf7n76h7s1zaaxm"; + }; + + checkInputs = [ coverage ]; + + # A test needs the HOME directory to be different from $TMPDIR. + preCheck = '' + HOME=$(mktemp -d) + ''; + + meta = { + description = "Python subprocess interface"; + homepage = https://pypi.python.org/pypi/sh/; + license = stdenv.lib.licenses.mit; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5c525d6b63c6..cab23eb80604 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6727,30 +6727,7 @@ in { }; }; - - sh = buildPythonPackage rec { - pname = "sh"; - version = "1.12.14"; - - src = fetchPypi { - inherit pname version; - sha256 = "1z2hx357xp3v4cv44xmqp7lli3frndqpyfmpbxf7n76h7s1zaaxm"; - }; - - buildInputs = with self; [ coverage ]; - - # A test needs the HOME directory to be different from $TMPDIR. - preCheck = '' - HOME=$(mktemp -d) - ''; - - meta = { - description = "Python subprocess interface"; - homepage = https://pypi.python.org/pypi/sh/; - license = licenses.mit; - }; - }; - + sh = callPackage ../development/python-modules/sh { }; sipsimple = buildPythonPackage rec { name = "sipsimple-${version}";