about summary refs log tree commit diff
path: root/pkgs/development/python-modules/zarr/default.nix
blob: 131aef003b2ddbfdf632597bbbafffc4e23fbe5a (plain) (blame)
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
{
  lib,
  asciitree,
  buildPythonPackage,
  fasteners,
  fetchPypi,
  numcodecs,
  msgpack,
  numpy,
  pytestCheckHook,
  pythonOlder,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "zarr";
  version = "2.18.2";
  format = "pyproject";

  disabled = pythonOlder "3.8";

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

  nativeBuildInputs = [ setuptools-scm ];

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

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "zarr" ];

  meta = with lib; {
    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 = licenses.mit;
    maintainers = [ ];
  };
}