Merge pull request #286128 from bcdarwin/init-python3-spatial-image

python311Packages.spatial-image: init at 1.0.0
This commit is contained in:
Mario Rodas 2024-02-10 06:48:50 -05:00 committed by GitHub
commit 2ac3b6e1db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 98 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ 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 ];
};
}

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, poetry-core
, pytestCheckHook
, numpy
, typing-extensions
, xarray
}:
buildPythonPackage rec {
pname = "xarray-dataclasses";
version = "1.7.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "astropenguin";
repo = "xarray-dataclasses";
rev = "refs/tags/v${version}";
hash = "sha256-fyRUH6t2+9tsxRQFfJR2EHinYtwCmWeCB77kpmBgdBA=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
numpy
typing-extensions
xarray
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "xarray_dataclasses" ];
meta = with lib; {
description = "xarray data creation made easy by dataclass";
homepage = "https://github.com/astropenguin/xarray-dataclasses";
changelog = "https://github.com/astropenguin/xarray-dataclasses/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}

View File

@ -13607,6 +13607,8 @@ self: super: with self; {
sparse = callPackage ../development/python-modules/sparse { };
spatial-image = callPackage ../development/python-modules/spatial-image { };
spdx-tools = callPackage ../development/python-modules/spdx-tools { };
speaklater = callPackage ../development/python-modules/speaklater { };
@ -16327,6 +16329,8 @@ self: super: with self; {
xarray = callPackage ../development/python-modules/xarray { };
xarray-dataclasses = callPackage ../development/python-modules/xarray-dataclasses { };
xarray-einstats = callPackage ../development/python-modules/xarray-einstats { };
xattr = callPackage ../development/python-modules/xattr { };