nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 43 lines 938 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 pytestCheckHook, 7 numpy, 8 xarray, 9 xarray-dataclass, 10}: 11 12buildPythonPackage rec { 13 pname = "spatial-image"; 14 version = "1.2.3"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "spatial-image"; 19 repo = "spatial-image"; 20 tag = "v${version}"; 21 hash = "sha256-mhT86v4/5s4dFw9sDYm5Ba7sM0ME9ifN9KEzhxVigOc="; 22 }; 23 24 build-system = [ hatchling ]; 25 26 dependencies = [ 27 numpy 28 xarray 29 xarray-dataclass 30 ]; 31 32 nativeCheckInputs = [ pytestCheckHook ]; 33 34 pythonImportsCheck = [ "spatial_image" ]; 35 36 meta = { 37 description = "Multi-dimensional spatial image data structure for scientific Python"; 38 homepage = "https://github.com/spatial-image/spatial-image"; 39 changelog = "https://github.com/spatial-image/spatial-image/releases/tag/v${version}"; 40 license = lib.licenses.mit; 41 maintainers = with lib.maintainers; [ bcdarwin ]; 42 }; 43}