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.4";
13 disabled = isPy3k;
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "eb2937c80497978d181efa1b839ec2d9622cf9600a039a79d0e108d1f9aec79d";
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; [ ];
36 };
37}