30 buildPythonPackage rec {
32 version = "2023.10.0";
33 format = "setuptools";
35 disabled = pythonOlder "3.8";
37 src = fetchFromGitHub {
39 repo = "filesystem_spec";
40 rev = "refs/tags/${version}";
41 hash = "sha256-cLkCQQbb/AakDSz1NTrVlHh8LdgoqtjX8OPT+Nb1NA4=";
44 propagatedBuildInputs = [
52 passthru.optional-dependencies = {
66 # missing dropboxdrivefs
121 nativeCheckInputs = [
129 __darwinAllowLocalNetworking = true;
132 # Test assumes user name is part of $HOME
133 # AssertionError: assert 'nixbld' in '/homeless-shelter/foo/bar'
134 "test_strip_protocol_expanduser"
135 # test accesses this remote ftp server:
136 # https://ftp.fau.de/debian-cd/current/amd64/log/success
138 # Tests want to access S3
139 "test_urlpath_inference_errors"
141 ] ++ lib.optionals (stdenv.isDarwin) [
142 # works locally on APFS, fails on hydra with AssertionError comparing timestamps
143 # darwin hydra builder uses HFS+ and has only one second timestamp resolution
144 # this two tests however, assume nanosecond resolution
149 disabledTestPaths = [
150 # JSON decoding issues
151 "fsspec/implementations/tests/test_dbfs.py"
154 pythonImportsCheck = [
159 description = "A specification that Python filesystems should adhere to";
160 homepage = "https://github.com/fsspec/filesystem_spec";
161 changelog = "https://github.com/fsspec/filesystem_spec/raw/${version}/docs/source/changelog.rst";
162 license = licenses.bsd3;
163 maintainers = with maintainers; [ ];