2023-02-09 11:40:11 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, aiohttp
|
|
|
|
, dask
|
2023-08-04 22:07:22 +00:00
|
|
|
, distributed
|
2023-02-09 11:40:11 +00:00
|
|
|
, fsspec
|
|
|
|
, numpy
|
|
|
|
, requests
|
2023-05-24 13:37:59 +00:00
|
|
|
, scikit-image
|
2023-02-09 11:40:11 +00:00
|
|
|
, toolz
|
|
|
|
, zarr
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ome-zarr";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.8.3";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-02-09 11:40:11 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ome";
|
|
|
|
repo = "ome-zarr-py";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-JuNXVse/n/lFbNaLwMcir8NBHiRxcbYvtbxePwI6YoY=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
dask
|
2023-08-04 22:07:22 +00:00
|
|
|
distributed
|
2023-02-09 11:40:11 +00:00
|
|
|
zarr
|
|
|
|
fsspec
|
|
|
|
aiohttp
|
|
|
|
requests
|
2023-05-24 13:37:59 +00:00
|
|
|
scikit-image
|
2023-02-09 11:40:11 +00:00
|
|
|
toolz
|
2023-08-04 22:07:22 +00:00
|
|
|
] ++ fsspec.passthru.optional-dependencies.s3;
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# attempts to access network
|
|
|
|
"test_s3_info"
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
# Fail with RecursionError
|
|
|
|
# https://github.com/ome/ome-zarr-py/issues/352
|
|
|
|
"--deselect=tests/test_cli.py::TestCli::test_astronaut_download"
|
|
|
|
"--deselect=tests/test_cli.py::TestCli::test_astronaut_info"
|
|
|
|
"--deselect=tests/test_cli.py::TestCli::test_coins_info"
|
|
|
|
"--deselect=tests/test_emitter.py::test_close"
|
|
|
|
"--deselect=tests/test_emitter.py::test_create_wrong_encoding"
|
|
|
|
"--deselect=tests/test_node.py::TestNode::test_image"
|
|
|
|
"--deselect=tests/test_node.py::TestNode::test_label"
|
|
|
|
"--deselect=tests/test_node.py::TestNode::test_labels"
|
|
|
|
"--deselect=tests/test_ome_zarr.py::TestOmeZarr::test_download"
|
|
|
|
"--deselect=tests/test_ome_zarr.py::TestOmeZarr::test_info"
|
|
|
|
"--deselect=tests/test_reader.py::TestReader::test_image"
|
|
|
|
"--deselect=tests/test_reader.py::TestReader::test_label"
|
|
|
|
"--deselect=tests/test_reader.py::TestReader::test_labels"
|
|
|
|
"--deselect=tests/test_starting_points.py::TestStartingPoints::test_label"
|
|
|
|
"--deselect=tests/test_starting_points.py::TestStartingPoints::test_labels"
|
|
|
|
"--deselect=tests/test_starting_points.py::TestStartingPoints::test_top_level"
|
|
|
|
];
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"ome_zarr"
|
|
|
|
"ome_zarr.cli"
|
|
|
|
"ome_zarr.csv"
|
|
|
|
"ome_zarr.data"
|
|
|
|
"ome_zarr.format"
|
|
|
|
"ome_zarr.io"
|
|
|
|
"ome_zarr.reader"
|
|
|
|
"ome_zarr.writer"
|
|
|
|
"ome_zarr.scale"
|
|
|
|
"ome_zarr.utils"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Implementation of next-generation file format (NGFF) specifications for storing bioimaging data in the cloud.";
|
|
|
|
homepage = "https://pypi.org/project/ome-zarr";
|
|
|
|
changelog = "https://github.com/ome/ome-zarr-py/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = [ maintainers.bcdarwin ];
|
|
|
|
mainProgram = "ome_zarr";
|
|
|
|
};
|
|
|
|
}
|