depot/third_party/nixpkgs/pkgs/development/python-modules/spatial-image/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

46 lines
1,016 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
flit-core,
pytestCheckHook,
numpy,
xarray,
xarray-dataclasses,
}:
buildPythonPackage rec {
pname = "spatial-image";
version = "1.1.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "spatial-image";
repo = "spatial-image";
rev = "refs/tags/v${version}";
hash = "sha256-yIAqHhq2naTA8PdLOdrNSrhEOhRwlFD6x9dH4xDVt9Y=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
numpy
xarray
xarray-dataclasses
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "spatial_image" ];
meta = with lib; {
description = "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 ];
};
}