587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
57 lines
967 B
Nix
57 lines
967 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, flaky
|
|
, numpy
|
|
, packaging
|
|
, pandas
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xarray";
|
|
version = "2024.2.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-oQXwJ5EILIiOviYiCQvq/y57aFcUiNYv5q/as1tLcX8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
packaging
|
|
pandas
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
flaky
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray =[
|
|
# ModuleNotFoundError: No module named 'xarray.datatree_'
|
|
"--ignore xarray/tests/datatree"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"xarray"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "N-D labeled arrays and datasets in Python";
|
|
homepage = "https://github.com/pydata/xarray";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fridh ];
|
|
};
|
|
}
|