1 { lib, stdenv, buildPythonPackage, fetchPypi, python, coverage, lsof, glibcLocales, coreutils, pytestCheckHook }:
3 buildPythonPackage rec {
9 sha256 = "sha256-5ARbbHMtnOddVxx59awiNO3Zrk9fqdWbCXBQgr3KGMc=";
13 sed -i 's#/usr/bin/env python#${python.interpreter}#' test.py
14 sed -i 's#/bin/sleep#${coreutils.outPath}/bin/sleep#' test.py
17 checkInputs = [ coverage lsof glibcLocales pytestCheckHook ];
19 # A test needs the HOME directory to be different from $TMPDIR.
21 export LC_ALL="en_US.UTF-8"
25 pytestFlagsArray = [ "test.py" ];
28 # Disable tests that fail on Hydra
30 "test_piped_exception1"
31 "test_piped_exception2"
33 ] ++ lib.optionals stdenv.isDarwin [
34 # Disable tests that fail on Darwin sandbox
35 "test_background_exception"
41 description = "Python subprocess interface";
42 homepage = "https://pypi.python.org/pypi/sh/";
43 license = licenses.mit;
44 maintainers = with maintainers; [ siriobalmelli ];