Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 79 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, hatchling, dask, numpy, python-dateutil, spatial-image, xarray, zarr, dask-image, fsspec, jsonschema, nbmake, pooch, pytestCheckHook, pytest-mypy, urllib3,}:
buildPythonPackage rec { pname = "multiscale-spatial-image"; version = "2.0.2"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "spatial-image"; repo = "multiscale-spatial-image"; tag = "v${version}"; hash = "sha256-aJp9RrCy88XFpM5GU7jADHQZFNZgXvlqSsCbmay3gww="; };
build-system = [ hatchling ];
dependencies = [ dask numpy python-dateutil spatial-image xarray 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/v${version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ bcdarwin ]; };}