Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.8 kB · 148 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149{ lib, stdenv, buildPythonPackage, fetchFromGitHub,
# build-system hatchling, hatch-vcs,
# optional-dependencies adlfs, pyarrow, dask, distributed, requests, dropbox, aiohttp, fusepy, gcsfs, libarchive-c, ocifs, panel, paramiko, pygit2, s3fs, smbprotocol, tqdm,
# tests numpy, pytest-asyncio, pytest-mock, pytest-vcr, pytestCheckHook, writableTmpDirAsHomeHook,}:
buildPythonPackage rec { pname = "fsspec"; version = "2025.3.2"; pyproject = true;
src = fetchFromGitHub { owner = "fsspec"; repo = "filesystem_spec"; tag = version; hash = "sha256-FsgDILnnr+WApoTv/y1zVFSeBNysvkizdKtMeRegbfI="; };
build-system = [ hatchling hatch-vcs ];
optional-dependencies = { abfs = [ adlfs ]; adl = [ adlfs ]; arrow = [ pyarrow ]; dask = [ dask distributed ]; dropbox = [ dropbox # dropboxdrivefs requests ]; entrypoints = [ ]; full = [ adlfs aiohttp dask distributed dropbox # dropboxdrivefs fusepy gcsfs libarchive-c ocifs panel paramiko pyarrow pygit2 requests s3fs smbprotocol tqdm ]; fuse = [ fusepy ]; gcs = [ gcsfs ]; git = [ pygit2 ]; github = [ requests ]; gs = [ gcsfs ]; gui = [ panel ]; hdfs = [ pyarrow ]; http = [ aiohttp ]; libarchive = [ libarchive-c ]; oci = [ ocifs ]; s3 = [ s3fs ]; sftp = [ paramiko ]; smb = [ smbprotocol ]; ssh = [ paramiko ]; tqdm = [ tqdm ]; };
nativeCheckInputs = [ aiohttp numpy pytest-asyncio pytest-mock pytest-vcr pytestCheckHook requests writableTmpDirAsHomeHook ];
__darwinAllowLocalNetworking = true;
disabledTests = [ # network access to aws s3 "test_async_cat_file_ranges" ] ++ lib.optionals (stdenv.hostPlatform.isDarwin) [ # works locally on APFS, fails on hydra with AssertionError comparing timestamps # darwin hydra builder uses HFS+ and has only one second timestamp resolution # this two tests however, assume nanosecond resolution "test_modified" "test_touch" # tries to access /home, ignores $HOME "test_directories" ];
disabledTestPaths = [ # network access to github.com "fsspec/implementations/tests/test_github.py" ];
pythonImportsCheck = [ "fsspec" ];
meta = { description = "Specification that Python filesystems should adhere to"; homepage = "https://github.com/fsspec/filesystem_spec"; changelog = "https://github.com/fsspec/filesystem_spec/raw/${version}/docs/source/changelog.rst"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ nickcao ]; };}