From 5e4fd34cfe9d8c866b6a8d8aa52d337cb032e987 Mon Sep 17 00:00:00 2001 From: sveitser Date: Wed, 24 Oct 2018 22:10:04 +0800 Subject: [PATCH] pythonPackages.sh: move to python-modules --- .../development/python-modules/sh/default.nix | 24 ++++++++++++++++++ pkgs/top-level/python-packages.nix | 25 +------------------ 2 files changed, 25 insertions(+), 24 deletions(-) create mode 100644 pkgs/development/python-modules/sh/default.nix 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}";