Files
nixpkgs/pkgs/development/python-modules/multiscale-spatial-image/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

79 lines
1.6 KiB
Nix

{
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.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "spatial-image";
repo = "multiscale-spatial-image";
tag = "v${version}";
hash = "sha256-wKSzhlNXIXOFEK8+xfKF6zTFr0+mdFhhvjWiHAKphk0=";
};
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/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}