1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5, isPyPy 6, bash 7, python 8}: 9 10buildPythonPackage rec { 11 pname = "subprocess32"; 12 version = "3.5.2"; 13 disabled = isPy3k; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "eb2b989cf03ffc7166339eb34f1aa26c5ace255243337b1e22dab7caa1166687"; 18 }; 19 20 buildInputs = [ bash ]; 21 22 preConfigure = '' 23 substituteInPlace test_subprocess32.py \ 24 --replace '/usr/' '${bash}/' 25 ''; 26 27 doCheck = !isPyPy; 28 checkPhase = '' 29 ${python.interpreter} test_subprocess32.py 30 ''; 31 32 meta = { 33 homepage = https://pypi.python.org/pypi/subprocess32; 34 description = "Backport of the subprocess module from Python 3.2.5 for use on 2.x"; 35 maintainers = with lib.maintainers; [ garbas ]; 36 }; 37}