python312Packages.pint-xarray: init at 0.4

This commit is contained in:
Doron Behar
2025-02-02 00:07:22 +02:00
parent d8db39f50d
commit a8e98ca375
2 changed files with 53 additions and 0 deletions
@@ -0,0 +1,51 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
numpy,
pint,
xarray,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pint-xarray";
version = "0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "xarray-contrib";
repo = "pint-xarray";
tag = "v${version}";
hash = "sha256-IFHSgrnqS7ZpNhRzzSgHPRUP90WNv84jBH4um/DRMCU=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
numpy
pint
xarray
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pint_xarray"
];
meta = {
description = "Interface for using pint with xarray, providing convenience accessors";
homepage = "https://github.com/xarray-contrib/pint-xarray";
changelog = "https://github.com/xarray-contrib/pint-xarray/blob/v${version}/docs/whats-new.rst";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ doronbehar ];
};
}
+2
View File
@@ -10451,6 +10451,8 @@ self: super: with self; {
pint-pandas = callPackage ../development/python-modules/pint-pandas { };
pint-xarray = callPackage ../development/python-modules/pint-xarray { };
pip = callPackage ../development/python-modules/pip { };
pipdate = callPackage ../development/python-modules/pipdate { };