Skip to content

Commit

Permalink
python.pkgs.subprocess32: 3.2.6 -> 3.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Sep 17, 2017
1 parent 4ca45f2 commit bebdd7a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 27 deletions.
38 changes: 38 additions & 0 deletions pkgs/development/python-modules/subprocess32/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, isPyPy
, bash
, python
}:

buildPythonPackage rec {
pname = "subprocess32";
version = "3.2.7";
name = "${pname}-${version}";
disabled = isPy3k;

src = fetchPypi {
inherit pname version;
sha256 = "1e450a4a4c53bf197ad6402c564b9f7a53539385918ef8f12bdf430a61036590";
};

buildInputs = [ bash ];

preConfigure = ''
substituteInPlace test_subprocess32.py \
--replace '/usr/' '${bash}/'
'';

doCheck = !isPyPy;
checkPhase = ''
${python.interpreter} test_subprocess32.py
'';

meta = {
homepage = https://pypi.python.org/pypi/subprocess32;
description = "Backport of the subprocess module from Python 3.2.5 for use on 2.x";
maintainers = with lib.maintainers; [ garbas ];
};
}
28 changes: 1 addition & 27 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20782,33 +20782,7 @@ in {
};
};

subprocess32 = buildPythonPackage rec {
name = "subprocess32-3.2.6";
disabled = isPy3k;

src = pkgs.fetchurl {
url = "mirror://pypi/s/subprocess32/${name}.tar.gz";
sha256 = "ddf4d46ed2be2c7e7372dfd00c464cabb6b3e29ca4113d85e26f82b3d2c220f6";
};

buildInputs = [ pkgs.bash ];

preConfigure = ''
substituteInPlace test_subprocess32.py \
--replace '/usr/' '${pkgs.bash}/'
'';

doCheck = !isPyPy;
checkPhase = ''
${python.interpreter} test_subprocess32.py
'';

meta = {
homepage = https://pypi.python.org/pypi/subprocess32;
description = "Backport of the subprocess module from Python 3.2.5 for use on 2.x";
maintainers = with maintainers; [ garbas ];
};
};
subprocess32 = callPackage ../development/python-modules/subprocess32 { };

spark_parser = buildPythonPackage (rec {
name = "${pname}-${version}";
Expand Down

0 comments on commit bebdd7a

Please sign in to comment.