diff options
Diffstat (limited to 'pkgs/development/python-modules/pyfakefs/default.nix')
| -rw-r--r-- | pkgs/development/python-modules/pyfakefs/default.nix | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/pkgs/development/python-modules/pyfakefs/default.nix b/pkgs/development/python-modules/pyfakefs/default.nix index 93391c479f2d..e453a787ac13 100644 --- a/pkgs/development/python-modules/pyfakefs/default.nix +++ b/pkgs/development/python-modules/pyfakefs/default.nix @@ -16,32 +16,17 @@ buildPythonPackage rec { pname = "pyfakefs"; - version = "5.7.4"; + version = "5.8.0"; pyproject = true; disabled = pythonOlder "3.5"; src = fetchPypi { inherit pname version; - hash = "sha256-SXHmXMgKk6Hm8eOkZUkJwMSTGGU5CE3JMB2j1oyIeP4="; + hash = "sha256-flRX7jzGcGnTzvbieCJ+z8gL+2HpJbwKTTsK8y0cmc4="; }; - postPatch = - '' - # test doesn't work in sandbox - substituteInPlace pyfakefs/tests/fake_filesystem_test.py \ - --replace "test_expand_root" "notest_expand_root" - substituteInPlace pyfakefs/tests/fake_os_test.py \ - --replace "test_path_links_not_resolved" "notest_path_links_not_resolved" \ - --replace "test_append_mode_tell_linux_windows" "notest_append_mode_tell_linux_windows" - '' - + (lib.optionalString stdenv.hostPlatform.isDarwin '' - # this test fails on darwin due to case-insensitive file system - substituteInPlace pyfakefs/tests/fake_os_test.py \ - --replace "test_rename_dir_to_existing_dir" "notest_rename_dir_to_existing_dir" - ''); - - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; pythonImportsCheck = [ "pyfakefs" ]; @@ -51,6 +36,19 @@ buildPythonPackage rec { undefined ]; + pytestFlagsArray = [ + "pyfakefs/tests" + ]; + + disabledTests = + [ + "test_expand_root" + ] + ++ (lib.optionals stdenv.hostPlatform.isDarwin [ + # this test fails on darwin due to case-insensitive file system + "test_rename_dir_to_existing_dir" + ]); + meta = with lib; { description = "Fake file system that mocks the Python file system modules"; homepage = "https://pyfakefs.org/"; |
