2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2024-04-21 15:54:59 +00:00
|
|
|
, flaky
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
2022-07-14 12:49:19 +00:00
|
|
|
, packaging
|
2020-04-24 23:36:52 +00:00
|
|
|
, pandas
|
2022-01-07 04:07:37 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2023-08-22 20:05:09 +00:00
|
|
|
, setuptools
|
2022-01-13 20:06:32 +00:00
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xarray";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2024.2.0";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2022-01-07 04:07:37 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-oQXwJ5EILIiOviYiCQvq/y57aFcUiNYv5q/as1tLcX8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
nativeBuildInputs = [
|
2023-08-22 20:05:09 +00:00
|
|
|
setuptools
|
2022-01-13 20:06:32 +00:00
|
|
|
setuptools-scm
|
2022-01-07 04:07:37 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
2022-07-14 12:49:19 +00:00
|
|
|
packaging
|
2022-01-07 04:07:37 +00:00
|
|
|
pandas
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
flaky
|
2022-01-07 04:07:37 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pytestFlagsArray =[
|
|
|
|
# ModuleNotFoundError: No module named 'xarray.datatree_'
|
|
|
|
"--ignore xarray/tests/datatree"
|
|
|
|
];
|
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"xarray"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "N-D labeled arrays and datasets in Python";
|
|
|
|
homepage = "https://github.com/pydata/xarray";
|
2022-01-07 04:07:37 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fridh ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|