1{ lib
2, buildPythonPackage
3, isPy27
4, fetchPypi
5, setuptools-scm
6, asciitree
7, numpy
8, fasteners
9, numcodecs
10, pytest
11}:
12
13buildPythonPackage rec {
14 pname = "zarr";
15 version = "2.12.0";
16 disabled = isPy27;
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "sha256-UVox7kuta7SK4FF4xYiuSaAqNd76Ad2aMpMwaQM2gWU=";
21 };
22
23 nativeBuildInputs = [
24 setuptools-scm
25 ];
26
27 propagatedBuildInputs = [
28 asciitree
29 numpy
30 fasteners
31 numcodecs
32 ];
33
34 checkInputs = [
35 pytest
36 ];
37
38 checkPhase = ''
39 pytest
40 '';
41
42 meta = with lib; {
43 description = "An implementation of chunked, compressed, N-dimensional arrays for Python";
44 homepage = "https://github.com/zarr-developers/zarr";
45 license = licenses.mit;
46 maintainers = [ maintainers.costrouc ];
47 };
48}