Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 setuptools-scm, 9 10 # dependencies 11 aiohttp, 12 dask, 13 fsspec, 14 numpy, 15 requests, 16 scikit-image, 17 toolz, 18 zarr, 19 20 # tests 21 pytestCheckHook, 22}: 23 24buildPythonPackage rec { 25 pname = "ome-zarr"; 26 version = "0.11.1"; 27 pyproject = true; 28 29 src = fetchFromGitHub { 30 owner = "ome"; 31 repo = "ome-zarr-py"; 32 tag = "v${version}"; 33 hash = "sha256-3RXkz+UQvLixfYYhm5y/5vu9r0ga6s3xKx1azbmKFgg="; 34 }; 35 36 build-system = [ 37 setuptools 38 setuptools-scm 39 ]; 40 41 dependencies = [ 42 aiohttp 43 dask 44 fsspec 45 numpy 46 requests 47 scikit-image 48 toolz 49 zarr 50 ] 51 ++ fsspec.optional-dependencies.s3; 52 53 nativeCheckInputs = [ 54 pytestCheckHook 55 ]; 56 57 disabledTests = [ 58 # attempts to access network 59 "test_s3_info" 60 ]; 61 62 disabledTestPaths = [ 63 # Fail with RecursionError 64 # https://github.com/ome/ome-zarr-py/issues/352 65 "tests/test_cli.py::TestCli::test_astronaut_download" 66 "tests/test_cli.py::TestCli::test_astronaut_info" 67 "tests/test_cli.py::TestCli::test_coins_info" 68 "tests/test_emitter.py::test_close" 69 "tests/test_emitter.py::test_create_wrong_encoding" 70 "tests/test_node.py::TestNode::test_image" 71 "tests/test_node.py::TestNode::test_label" 72 "tests/test_node.py::TestNode::test_labels" 73 "tests/test_ome_zarr.py::TestOmeZarr::test_download" 74 "tests/test_ome_zarr.py::TestOmeZarr::test_info" 75 "tests/test_reader.py::TestReader::test_image" 76 "tests/test_reader.py::TestReader::test_label" 77 "tests/test_reader.py::TestReader::test_labels" 78 "tests/test_starting_points.py::TestStartingPoints::test_label" 79 "tests/test_starting_points.py::TestStartingPoints::test_labels" 80 "tests/test_starting_points.py::TestStartingPoints::test_top_level" 81 ]; 82 83 pythonImportsCheck = [ 84 "ome_zarr" 85 "ome_zarr.cli" 86 "ome_zarr.csv" 87 "ome_zarr.data" 88 "ome_zarr.format" 89 "ome_zarr.io" 90 "ome_zarr.reader" 91 "ome_zarr.writer" 92 "ome_zarr.scale" 93 "ome_zarr.utils" 94 ]; 95 96 meta = { 97 description = "Implementation of next-generation file format (NGFF) specifications for storing bioimaging data in the cloud"; 98 homepage = "https://pypi.org/project/ome-zarr"; 99 changelog = "https://github.com/ome/ome-zarr-py/blob/${src.tag}/CHANGELOG.md"; 100 license = lib.licenses.bsd2; 101 maintainers = [ lib.maintainers.bcdarwin ]; 102 mainProgram = "ome_zarr"; 103 }; 104}