diff options
Diffstat (limited to 'pkgs/development/python-modules/sh/default.nix')
-rw-r--r-- | pkgs/development/python-modules/sh/default.nix | 63 |
1 files changed, 30 insertions, 33 deletions
diff --git a/pkgs/development/python-modules/sh/default.nix b/pkgs/development/python-modules/sh/default.nix index 46332d0d528a2..655e93f4e964b 100644 --- a/pkgs/development/python-modules/sh/default.nix +++ b/pkgs/development/python-modules/sh/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook - }: +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, +}: buildPythonPackage rec { pname = "sh"; @@ -18,40 +19,36 @@ buildPythonPackage rec { hash = "sha256-c4Ms4ydcW7LgmAI1WuYD74nzILuY/Xg+JePJe0q5AQQ="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests" - ]; + pytestFlagsArray = [ "tests" ]; # A test needs the HOME directory to be different from $TMPDIR. preCheck = '' export HOME=$(mktemp -d) ''; - disabledTests = [ - # Disable tests that fail on Hydra - "test_no_fd_leak" - "test_piped_exception1" - "test_piped_exception2" - "test_unicode_path" - # fails to import itself after modifying the environment - "test_environment" - # timing sensitive through usage of sleep(1) and signal handling - # https://github.com/amoffat/sh/issues/684 - "test_general_signal" - ] ++ lib.optionals stdenv.isDarwin [ - # Disable tests that fail on Darwin sandbox - "test_background_exception" - "test_cwd" - "test_ok_code" - ]; + disabledTests = + [ + # Disable tests that fail on Hydra + "test_no_fd_leak" + "test_piped_exception1" + "test_piped_exception2" + "test_unicode_path" + # fails to import itself after modifying the environment + "test_environment" + # timing sensitive through usage of sleep(1) and signal handling + # https://github.com/amoffat/sh/issues/684 + "test_general_signal" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # Disable tests that fail on Darwin sandbox + "test_background_exception" + "test_cwd" + "test_ok_code" + ]; meta = with lib; { description = "Python subprocess interface"; |