diff --git a/pkgs/development/python-modules/fs/default.nix b/pkgs/development/python-modules/fs/default.nix index ff6ce57aefa..77aee7a3bdf 100644 --- a/pkgs/development/python-modules/fs/default.nix +++ b/pkgs/development/python-modules/fs/default.nix @@ -3,7 +3,6 @@ , buildPythonPackage , fetchPypi , six -, nose , appdirs , scandir , backports_os @@ -15,7 +14,8 @@ , mock , pythonAtLeast , isPy3k -, pytest +, pytestCheckHook +, stdenv }: buildPythonPackage rec { @@ -28,7 +28,7 @@ buildPythonPackage rec { }; buildInputs = [ glibcLocales ]; - checkInputs = [ nose pyftpdlib mock psutil pytest ]; + checkInputs = [ pyftpdlib mock psutil pytestCheckHook ]; propagatedBuildInputs = [ six appdirs pytz ] ++ lib.optionals (!isPy3k) [ backports_os ] ++ lib.optionals (!pythonAtLeast "3.6") [ typing ] @@ -37,10 +37,20 @@ buildPythonPackage rec { LC_ALL="en_US.utf-8"; - checkPhase = '' - HOME=$(mktemp -d) pytest -k 'not user_data_repr' --ignore=tests/test_opener.py + preCheck = '' + HOME=$(mktemp -d) ''; + pytestFlagsArray = [ "--ignore=tests/test_opener.py" ]; + + disabledTests = [ + "user_data_repr" + ] ++ lib.optionals (stdenv.isDarwin) [ # remove if https://github.com/PyFilesystem/pyfilesystem2/issues/430#issue-707878112 resolved + "test_ftpfs" + ]; + + __darwinAllowLocalNetworking = true; + meta = with lib; { description = "Filesystem abstraction"; homepage = "https://github.com/PyFilesystem/pyfilesystem2";