diff --git a/pkgs/development/python-modules/fs/default.nix b/pkgs/development/python-modules/fs/default.nix index 9d1fded19c1b..e36d8412ee20 100644 --- a/pkgs/development/python-modules/fs/default.nix +++ b/pkgs/development/python-modules/fs/default.nix @@ -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; {