blob: a12c127294fa94b5a238eec19b9b0c186513cbca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
numpy,
pint,
xarray,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pint-xarray";
version = "0.5.1";
pyproject = true;
src = fetchFromGitHub {
owner = "xarray-contrib";
repo = "pint-xarray";
tag = "v${version}";
hash = "sha256-bPvLTtaROCYr8yWI6vQK7pYbBYUlsMzy7ALnufAT7Xo=";
};
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/${src.tag}/docs/whats-new.rst";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ doronbehar ];
};
}
|