Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 21 additions & 25 deletions pkgs/development/python-modules/fsspec/default.nix
Original file line number Diff line number Diff line change
@@ -1,47 +1,51 @@
{
lib,
stdenv,
aiohttp,
buildPythonPackage,
fetchFromGitHub,

# build-system
hatchling,
hatch-vcs,
numpy,
paramiko,
pytest-asyncio,
pytest-mock,
pytest-vcr,
pytestCheckHook,
pythonOlder,
requests,
smbprotocol,
tqdm,

# optional-dependencies
adlfs,
pyarrow,
dask,
distributed,
requests,
dropbox,
aiohttp,
fusepy,
gcsfs,
libarchive-c,
ocifs,
panel,
pyarrow,
paramiko,
pygit2,
s3fs,
smbprotocol,
tqdm,

# tests
numpy,
pytest-asyncio,
pytest-mock,
pytest-vcr,
pytestCheckHook,
writableTmpDirAsHomeHook,
}:

buildPythonPackage rec {
pname = "fsspec";
version = "2024.12.0";
version = "2025.2.0";
pyproject = true;

disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "fsspec";
repo = "filesystem_spec";
tag = version;
hash = "sha256-Vc0vBayPg6zZ4+pxJsHChSGg0kjA0Q16+Gk0bO0IEpI=";
hash = "sha256-vJYnPbGbEMAe1p0EUBxSRZYtvBdJzjzDOesyTJsFJbU=";
};

build-system = [
Expand Down Expand Up @@ -110,12 +114,9 @@ buildPythonPackage rec {
pytest-mock
pytest-vcr
pytestCheckHook
writableTmpDirAsHomeHook
];

preCheck = ''
export HOME=$(mktemp -d)
'';

__darwinAllowLocalNetworking = true;

disabledTests =
Expand All @@ -140,11 +141,6 @@ buildPythonPackage rec {
"test_directories"
];

disabledTestPaths = [
# JSON decoding issues
"fsspec/implementations/tests/test_dbfs.py"
];

pythonImportsCheck = [ "fsspec" ];

meta = {
Expand Down