nixpkgs/pkgs/development/python-modules/xarray-dataclass/default.nix
Martin Weinelt 8ea6bde88d
treewide: prune pythonOlder 3.10/3.11
This is a post 3.10 removal cleanup.
2026-02-15 04:33:54 +01:00

47 lines
973 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytestCheckHook,
numpy,
typing-extensions,
xarray,
}:
buildPythonPackage rec {
pname = "xarray-dataclass";
version = "3.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "xarray-contrib";
repo = "xarray-dataclass";
tag = "v${version}";
hash = "sha256-NHJvrkoRhq5cPSBBMWzrWVn+3sPvveMRgTXc/NdLfuA=";
};
build-system = [
hatchling
];
pythonRelaxDeps = [ "xarray" ];
dependencies = [
numpy
typing-extensions
xarray
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "xarray_dataclass" ];
meta = {
description = "Xarray data creation made easy by dataclass";
homepage = "https://xarray-contrib.github.io/xarray-dataclass";
changelog = "https://github.com/xarray-contrib/xarray-dataclass/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}