1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 hatchling,
7 pytestCheckHook,
8 numpy,
9 typing-extensions,
10 xarray,
11}:
12
13buildPythonPackage rec {
14 pname = "xarray-dataclass";
15 version = "3.0.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "xarray-contrib";
20 repo = "xarray-dataclass";
21 tag = "v${version}";
22 hash = "sha256-NHJvrkoRhq5cPSBBMWzrWVn+3sPvveMRgTXc/NdLfuA=";
23 };
24
25 build-system = [
26 hatchling
27 ];
28
29 pythonRelaxDeps = [ "xarray" ];
30
31 dependencies = [
32 numpy
33 typing-extensions
34 xarray
35 ];
36
37 nativeCheckInputs = [ pytestCheckHook ];
38
39 pythonImportsCheck = [ "xarray_dataclass" ];
40
41 meta = with lib; {
42 description = "Xarray data creation made easy by dataclass";
43 homepage = "https://xarray-contrib.github.io/xarray-dataclass";
44 changelog = "https://github.com/xarray-contrib/xarray-dataclass/releases/tag/v${version}";
45 license = licenses.mit;
46 maintainers = with maintainers; [ bcdarwin ];
47 };
48}