python312Packages.fs: clean-up (#349608)

This commit is contained in:
Fabian Affolter
2024-12-09 09:38:44 +01:00
committed by GitHub
+15 -14
View File
@@ -4,7 +4,6 @@
appdirs,
buildPythonPackage,
fetchPypi,
glibcLocales,
mock,
psutil,
pyftpdlib,
@@ -30,13 +29,10 @@ buildPythonPackage rec {
build-system = [ setuptools ];
buildInputs = [ glibcLocales ];
dependencies = [
six
appdirs
pytz
setuptools
];
nativeCheckInputs = [
@@ -52,23 +48,28 @@ buildPythonPackage rec {
HOME=$(mktemp -d)
'';
# strong cycle with parameterized
doCheck = false;
pytestFlagsArray = [ "--ignore=tests/test_opener.py" ];
disabledTestPaths = [
# Circular dependency with parameterized
"tests/test_move.py"
"tests/test_mirror.py"
"tests/test_copy.py"
];
disabledTests =
[ "user_data_repr" ]
[
"user_data_repr"
# https://github.com/PyFilesystem/pyfilesystem2/issues/568
"test_remove"
# Tests require network access
"TestFTPFS"
]
++ lib.optionals (stdenv.hostPlatform.isDarwin) [
# remove if https://github.com/PyFilesystem/pyfilesystem2/issues/430#issue-707878112 resolved
"test_ftpfs"
]
++ lib.optionals (pythonAtLeast "3.9") [
# update friend version of this commit: https://github.com/PyFilesystem/pyfilesystem2/commit/3e02968ce7da7099dd19167815c5628293e00040
# merged into master, able to be removed after >2.4.1
"test_copy_sendfile"
];
pythonImportsCheck = [ "fs" ];
__darwinAllowLocalNetworking = true;
meta = with lib; {