python3Packages.pyfakefs: 5.7.4 -> 5.8.0

https://github.com/jmcgeheeiv/pyfakefs/blob/v5.8.0/CHANGES.md

This commit was automatically generated using update-python-libraries.
This commit is contained in:
Martin Weinelt
2025-04-03 23:12:51 +02:00
parent 0ab425dfbf
commit 8d402cdd8d
@@ -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/";