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