1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
{
lib,
buildPythonPackage,
fetchPypi,
# build-system
hatchling,
hatch-vcs,
# dependencies
donfig,
numpy,
numcodecs,
packaging,
typing-extensions,
# tests
hypothesis,
pytest-asyncio,
pytest-xdist,
pytestCheckHook,
tomlkit,
}:
buildPythonPackage rec {
pname = "zarr";
version = "3.1.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-F9ty838kiUUtITesiRxBM7j5dvkYnY79PnXzs63YTow=";
};
build-system = [
hatchling
hatch-vcs
];
dependencies = [
donfig
numcodecs
numpy
packaging
typing-extensions
]
++ numcodecs.optional-dependencies.crc32c;
nativeCheckInputs = [
hypothesis
pytest-asyncio
pytest-xdist
pytestCheckHook
tomlkit
];
disabledTestPaths = [
# requires uv and then fails at setting up python envs
"tests/test_examples.py"
];
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";
changelog = "https://github.com/zarr-developers/zarr-python/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ doronbehar ];
};
}
|