Something went wrong. Try again.
lol
Something went wrong. Try again.
1.6 kB · 78 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879{ lib, buildPythonPackage, fetchFromGitHub, hatchling, dask, numpy, python-dateutil, spatial-image, xarray, xarray-dataclass, zarr, dask-image, fsspec, jsonschema, nbmake, pooch, pytestCheckHook, pytest-mypy, urllib3,}:
buildPythonPackage rec { pname = "multiscale-spatial-image"; version = "2.1.0"; pyproject = true;
src = fetchFromGitHub { owner = "spatial-image"; repo = "multiscale-spatial-image"; tag = "v${version}"; hash = "sha256-uF9ZccLvP1ref6qn3l6EpedsoK29Q8lAdr68JjsYMis="; };
build-system = [ hatchling ];
dependencies = [ dask numpy python-dateutil spatial-image xarray xarray-dataclass zarr ];
optional-dependencies = { dask-image = [ dask-image ]; #itk = [ # itk-filtering # not in nixpkgs yet #]; test = [ dask-image fsspec #ipfsspec # not in nixpkgs #itk-filtering # not in nixpkgs jsonschema nbmake pooch pytest-mypy urllib3 ]; };
nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.test;
doCheck = false; # all test files try to download data
pythonImportsCheck = [ "multiscale_spatial_image" ];
meta = { description = "Generate a multiscale, chunked, multi-dimensional spatial image data structure that can serialized to OME-NGFF"; homepage = "https://github.com/spatial-image/multiscale-spatial-image"; changelog = "https://github.com/spatial-image/multiscale-spatial-image/releases/tag/${src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ bcdarwin ]; };}