2017-09-17 10:48:29 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, isPyPy
|
|
|
|
, bash
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "subprocess32";
|
2018-06-12 18:47:07 +02:00
|
|
|
version = "3.5.2";
|
2017-09-17 10:48:29 +02:00
|
|
|
disabled = isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-12 18:47:07 +02:00
|
|
|
sha256 = "eb2b989cf03ffc7166339eb34f1aa26c5ace255243337b1e22dab7caa1166687";
|
2017-09-17 10:48:29 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|