21 buildPythonPackage rec {
26 inherit pname version;
27 sha256 = "c10ba188b14d6213a1ca950efd004931abbfa64b294c80bbf1045753831bf42f";
30 buildInputs = [ glibcLocales ];
31 checkInputs = [ pyftpdlib mock psutil pytestCheckHook ];
32 propagatedBuildInputs = [ six appdirs pytz ]
33 ++ lib.optionals (!isPy3k) [ backports_os ]
34 ++ lib.optionals (!pythonAtLeast "3.6") [ typing ]
35 ++ lib.optionals (!pythonAtLeast "3.5") [ scandir ]
36 ++ lib.optionals (!pythonAtLeast "3.5") [ enum34 ];
44 pytestFlagsArray = [ "--ignore=tests/test_opener.py" ];
48 ] ++ lib.optionals (stdenv.isDarwin) [ # remove if https://github.com/PyFilesystem/pyfilesystem2/issues/430#issue-707878112 resolved
50 ] ++ lib.optionals (pythonAtLeast "3.9") [
51 # update friend version of this commit: https://github.com/PyFilesystem/pyfilesystem2/commit/3e02968ce7da7099dd19167815c5628293e00040
52 # merged into master, able to be removed after >2.4.1
56 __darwinAllowLocalNetworking = true;
59 description = "Filesystem abstraction";
60 homepage = "https://github.com/PyFilesystem/pyfilesystem2";
61 license = licenses.bsd3;
62 maintainers = with maintainers; [ lovek323 ];
63 platforms = platforms.unix;