1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 numpy,
6 packaging,
7 pandas,
8 pytestCheckHook,
9 pythonOlder,
10 setuptools,
11 setuptools-scm,
12}:
13
14buildPythonPackage rec {
15 pname = "xarray";
16 version = "2025.01.2";
17 pyproject = true;
18
19 disabled = pythonOlder "3.10";
20
21 src = fetchFromGitHub {
22 owner = "pydata";
23 repo = "xarray";
24 tag = "v${version}";
25 hash = "sha256-Ub3XHMhMnJ9i746o701PYSai8ulTdjLx4OWal2KUTLM=";
26 };
27
28 build-system = [
29 setuptools
30 setuptools-scm
31 ];
32
33 dependencies = [
34 numpy
35 packaging
36 pandas
37 ];
38
39 nativeCheckInputs = [
40 pytestCheckHook
41 ];
42
43 pythonImportsCheck = [ "xarray" ];
44
45 meta = {
46 changelog = "https://github.com/pydata/xarray/blob/${src.tag}/doc/whats-new.rst";
47 description = "N-D labeled arrays and datasets in Python";
48 homepage = "https://github.com/pydata/xarray";
49 license = lib.licenses.asl20;
50 maintainers = with lib.maintainers; [
51 doronbehar
52 ];
53 };
54}