10 buildPythonPackage rec {
15 src = fetchFromGitHub {
18 rev = "refs/tags/${version}";
19 hash = "sha256-O0jS/hO31ou9h0xsMSKAy76vEELjryaHKbvdfzYevJc=";
22 nativeBuildInputs = [ poetry-core ];
24 nativeCheckInputs = [ pytestCheckHook ];
26 pytestFlagsArray = [ "tests" ];
28 # A test needs the HOME directory to be different from $TMPDIR.
30 export HOME=$(mktemp -d)
35 # Disable tests that fail on Hydra
37 "test_piped_exception1"
38 "test_piped_exception2"
40 # fails to import itself after modifying the environment
42 # timing sensitive through usage of sleep(1) and signal handling
43 # https://github.com/amoffat/sh/issues/684
46 ++ lib.optionals stdenv.hostPlatform.isDarwin [
47 # Disable tests that fail on Darwin sandbox
48 "test_background_exception"
54 description = "Python subprocess interface";
55 homepage = "https://pypi.python.org/pypi/sh/";
56 license = licenses.mit;
57 maintainers = with maintainers; [ siriobalmelli ];