Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 7 # build-system 8 setuptools-scm, 9 10 # dependencies 11 asciitree, 12 numpy, 13 fasteners, 14 numcodecs, 15 16 # tests 17 pytestCheckHook, 18}: 19 20buildPythonPackage rec { 21 pname = "zarr"; 22 version = "2.18.7"; 23 pyproject = true; 24 25 disabled = pythonOlder "3.8"; 26 27 src = fetchPypi { 28 inherit pname version; 29 hash = "sha256-srj2bxTaxK9msYDSM4gZmBuYH3Dhlsmmbmv6qeWVcvU="; 30 }; 31 32 build-system = [ 33 setuptools-scm 34 ]; 35 36 dependencies = [ 37 asciitree 38 numpy 39 fasteners 40 numcodecs 41 ] 42 ++ numcodecs.optional-dependencies.msgpack; 43 44 nativeCheckInputs = [ 45 pytestCheckHook 46 ]; 47 48 pythonImportsCheck = [ "zarr" ]; 49 50 # FIXME remove once zarr's reverse dependencies support v3 51 passthru.skipBulkUpdate = true; 52 53 meta = { 54 description = "Implementation of chunked, compressed, N-dimensional arrays for Python"; 55 homepage = "https://github.com/zarr-developers/zarr"; 56 changelog = "https://github.com/zarr-developers/zarr-python/releases/tag/v${version}"; 57 license = lib.licenses.mit; 58 maintainers = with lib.maintainers; [ doronbehar ]; 59 }; 60}