31 buildPythonPackage rec {
34 format = "setuptools";
36 disabled = pythonOlder "3.8";
38 src = fetchFromGitHub {
40 repo = "filesystem_spec";
42 hash = "sha256-C+47BcIELZTEARXW8fAMHMjyKUWxU1tNKWGoPPtt/fQ=";
45 propagatedBuildInputs = [
53 optional-dependencies = {
62 # missing dropboxdrivefs
68 github = [ requests ];
79 smb = [ smbprotocol ];
82 libarchive = [ libarchive-c ];
96 export HOME=$(mktemp -d)
99 __darwinAllowLocalNetworking = true;
103 # Test assumes user name is part of $HOME
104 # AssertionError: assert 'nixbld' in '/homeless-shelter/foo/bar'
105 "test_strip_protocol_expanduser"
106 # test accesses this remote ftp server:
107 # https://ftp.fau.de/debian-cd/current/amd64/log/success
109 # Tests want to access S3
110 "test_urlpath_inference_errors"
113 ++ lib.optionals (stdenv.hostPlatform.isDarwin) [
114 # works locally on APFS, fails on hydra with AssertionError comparing timestamps
115 # darwin hydra builder uses HFS+ and has only one second timestamp resolution
116 # this two tests however, assume nanosecond resolution
119 # tries to access /home, ignores $HOME
123 disabledTestPaths = [
124 # JSON decoding issues
125 "fsspec/implementations/tests/test_dbfs.py"
128 pythonImportsCheck = [ "fsspec" ];
131 description = "Specification that Python filesystems should adhere to";
132 homepage = "https://github.com/fsspec/filesystem_spec";
133 changelog = "https://github.com/fsspec/filesystem_spec/raw/${version}/docs/source/changelog.rst";
134 license = licenses.bsd3;