Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{ lib, buildPythonPackage, dask-image, dask, fetchFromGitHub, fsspec, hatch-vcs, hatchling, ngff-zarr, numpy, python-dateutil, spatial-image, writableTmpDirAsHomeHook, xarray-dataclass, xarray, zarr,}:
buildPythonPackage (finalAttrs: { pname = "multiscale-spatial-image"; version = "2.1.0"; pyproject = true;
src = fetchFromGitHub { owner = "spatial-image"; repo = "multiscale-spatial-image"; tag = "v${finalAttrs.version}"; hash = "sha256-uF9ZccLvP1ref6qn3l6EpedsoK29Q8lAdr68JjsYMis="; };
pythonRelaxDeps = [ "dask" "ngff-zarr" "xarray" ];
build-system = [ hatch-vcs hatchling ];
dependencies = [ dask ngff-zarr numpy python-dateutil spatial-image xarray xarray-dataclass zarr ];
optional-dependencies = { dask-image = [ dask-image ]; #itk = [ # itk-filtering # not in nixpkgs yet #]; };
nativeBuildInputs = [ writableTmpDirAsHomeHook ];
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/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ bcdarwin ]; };})