Skip to content
Merged
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
38 changes: 8 additions & 30 deletions pkgs/development/python-modules/zarr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,72 +5,50 @@
pythonOlder,

# build-system
hatchling,
hatch-vcs,
setuptools-scm,

# dependencies
asciitree,
donfig,
numpy,
fasteners,
numcodecs,

# tests
aiohttp,
botocore,
fsspec,
hypothesis,
pytest-asyncio,
pytestCheckHook,
requests,
rich,
}:

buildPythonPackage rec {
pname = "zarr";
version = "3.0.1";
version = "2.18.3";
format = "pyproject";

disabled = pythonOlder "3.8";

src = fetchPypi {
inherit pname version;
hash = "sha256-AzhZxWA9ycKeU69JTt4ktC8bdh0rtiVGaZCjuKmvt5I=";
hash = "sha256-JYDYy23YRiF3GhDTHE13fcqKJ3BqGomyn0LS034t9c4=";
};

build-system = [
hatchling
hatch-vcs
setuptools-scm
];

dependencies = [
asciitree
donfig
numpy
fasteners
numcodecs
] ++ numcodecs.optional-dependencies.crc32c;
] ++ numcodecs.optional-dependencies.msgpack;

nativeCheckInputs = [
aiohttp
botocore
fsspec
hypothesis
pytest-asyncio
pytestCheckHook
requests
rich
];

disabledTests = [
# flaky
"test_vindex"
"test_zarr_hierarchy"
"test_zarr_store"
];

pythonImportsCheck = [ "zarr" ];

# FIXME remove once zarr's reverse dependencies support v3
passthru.skipBulkUpdate = true;

meta = {
description = "Implementation of chunked, compressed, N-dimensional arrays for Python";
homepage = "https://github.com/zarr-developers/zarr";
Expand Down