bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
pythonRelaxDepsHook,
|
|
numpy,
|
|
typing-extensions,
|
|
xarray,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xarray-dataclasses";
|
|
version = "1.8.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "astropenguin";
|
|
repo = "xarray-dataclasses";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-NZBWq1G63yef6h9TjRBfCqPzhaks0Cm7bUCJfIIpmcE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonRelaxDeps = [ "xarray" ];
|
|
|
|
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 ];
|
|
};
|
|
}
|