mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
Merge pull request #286128 from bcdarwin/init-python3-spatial-image
python311Packages.spatial-image: init at 1.0.0
This commit is contained in:
commit
2ac3b6e1db
47
pkgs/development/python-modules/spatial-image/default.nix
Normal file
47
pkgs/development/python-modules/spatial-image/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user