9bf9db42b3
Diff: https://github.com/ome/ome-zarr-py/compare/v0.12.2...v0.13.0 Changelog: https://github.com/ome/ome-zarr-py/blob/v0.13.0/CHANGELOG.md
120 lines
2.8 KiB
Nix
120 lines
2.8 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
setuptools-scm,
|
|
|
|
# dependencies
|
|
aiohttp,
|
|
dask,
|
|
fsspec,
|
|
numpy,
|
|
rangehttpserver,
|
|
requests,
|
|
scikit-image,
|
|
toolz,
|
|
zarr,
|
|
|
|
# tests
|
|
ome-zarr-models,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "ome-zarr";
|
|
version = "0.13.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ome";
|
|
repo = "ome-zarr-py";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-bRksh6ZKqF6cL6XnWBsQRb4gRVxH/vutKtep6SyFo48=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"dask"
|
|
];
|
|
dependencies = [
|
|
aiohttp
|
|
dask
|
|
fsspec
|
|
numpy
|
|
rangehttpserver
|
|
requests
|
|
scikit-image
|
|
toolz
|
|
zarr
|
|
]
|
|
++ fsspec.optional-dependencies.s3;
|
|
|
|
nativeCheckInputs = [
|
|
ome-zarr-models
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# attempts to access network
|
|
"test_s3_info"
|
|
|
|
# AssertionError: assert {'blocksize':... 'blosc', ...} == {'blocksize':... 'blosc', ...}
|
|
# comp {'id': 'blosc', 'cname': 'lz4', 'clevel': 5, 'shuffle': 1, 'blocksize': 0}
|
|
"test_default_compression"
|
|
"test_write_image_compressed"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Fail with RecursionError
|
|
# https://github.com/ome/ome-zarr-py/issues/352
|
|
"tests/test_cli.py::TestCli::test_astronaut_download"
|
|
"tests/test_cli.py::TestCli::test_astronaut_info"
|
|
"tests/test_cli.py::TestCli::test_coins_info"
|
|
"tests/test_emitter.py::test_close"
|
|
"tests/test_emitter.py::test_create_wrong_encoding"
|
|
"tests/test_node.py::TestNode::test_image"
|
|
"tests/test_node.py::TestNode::test_label"
|
|
"tests/test_node.py::TestNode::test_labels"
|
|
"tests/test_ome_zarr.py::TestOmeZarr::test_download"
|
|
"tests/test_ome_zarr.py::TestOmeZarr::test_info"
|
|
"tests/test_reader.py::TestReader::test_image"
|
|
"tests/test_reader.py::TestReader::test_label"
|
|
"tests/test_reader.py::TestReader::test_labels"
|
|
"tests/test_starting_points.py::TestStartingPoints::test_label"
|
|
"tests/test_starting_points.py::TestStartingPoints::test_labels"
|
|
"tests/test_starting_points.py::TestStartingPoints::test_top_level"
|
|
|
|
# tries to access network:
|
|
"ome_zarr/io.py"
|
|
];
|
|
|
|
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 = {
|
|
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/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = [ lib.maintainers.bcdarwin ];
|
|
mainProgram = "ome_zarr";
|
|
};
|
|
})
|