2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-09-26 11:04:55 +00:00
|
|
|
fetchFromGitHub,
|
2024-06-05 15:53:02 +00:00
|
|
|
numpy,
|
|
|
|
packaging,
|
|
|
|
pandas,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xarray";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "2024.07.0";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2022-01-07 04:07:37 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pydata";
|
|
|
|
repo = "xarray";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-pt0qnkgf3E/QQHQAaZLommakhqEJ4NuTyjx5tdk2N1U=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
build-system = [
|
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
|
|
|
];
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
dependencies = [
|
2022-01-07 04:07:37 +00:00
|
|
|
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 = [
|
2022-01-07 04:07:37 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "xarray" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
meta = with lib; {
|
2024-09-26 11:04:55 +00:00
|
|
|
changelog = "https://github.com/pydata/xarray/blob/${src.rev}/doc/whats-new.rst";
|
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;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|