depot/third_party/nixpkgs/pkgs/development/python-modules/spatial-image/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

47 lines
1,013 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, flit-core
, pytestCheckHook
, numpy
, xarray
, xarray-dataclasses
}:
buildPythonPackage rec {
pname = "spatial-image";
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "spatial-image";
repo = "spatial-image";
rev = "refs/tags/v${version}";
hash = "sha256-nCsxPhIgGmZZntYbhQ3KnzptcKdN288eNixbQDgECSQ=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
numpy
xarray
xarray-dataclasses
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "spatial_image" ];
meta = with lib; {
description = "A multi-dimensional spatial image data structure for scientific Python";
homepage = "https://github.com/spatial-image/spatial-image";
changelog = "https://github.com/spatial-image/spatial-image/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}