mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 08:04:15 +01:00
Diff: https://github.com/pydata/xarray/compare/v2025.12.0...v2026.02.0 Changelog: https://github.com/pydata/xarray/blob/v2026.02.0/doc/whats-new.rst
119 lines
2.1 KiB
Nix
119 lines
2.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
setuptools-scm,
|
|
|
|
# dependenices
|
|
numpy,
|
|
packaging,
|
|
pandas,
|
|
|
|
# optional-dependencies
|
|
bottleneck,
|
|
cartopy,
|
|
cftime,
|
|
dask,
|
|
fsspec,
|
|
h5netcdf,
|
|
matplotlib,
|
|
netcdf4,
|
|
numba,
|
|
numbagg,
|
|
opt-einsum,
|
|
pooch,
|
|
scipy,
|
|
seaborn,
|
|
sparse,
|
|
zarr,
|
|
|
|
# tests
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xarray";
|
|
version = "2026.02.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pydata";
|
|
repo = "xarray";
|
|
tag = "v${version}";
|
|
hash = "sha256-g1cKI0Et3RToWOxn+bELtT5jAaB8e1N+k9doCU+OgfY=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# don't depend on pytest-mypy-plugins
|
|
sed -i "/--mypy-/d" pyproject.toml
|
|
'';
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
numpy
|
|
packaging
|
|
pandas
|
|
];
|
|
|
|
optional-dependencies = lib.fix (self: {
|
|
accel = [
|
|
bottleneck
|
|
# flox
|
|
numba
|
|
numbagg
|
|
opt-einsum
|
|
scipy
|
|
];
|
|
io = [
|
|
netcdf4
|
|
h5netcdf
|
|
# pydap
|
|
scipy
|
|
zarr
|
|
fsspec
|
|
cftime
|
|
pooch
|
|
];
|
|
etc = [ sparse ];
|
|
parallel = [ dask ] ++ dask.optional-dependencies.complete;
|
|
viz = [
|
|
cartopy
|
|
matplotlib
|
|
# nc-time-axis
|
|
seaborn
|
|
];
|
|
complete = with self; accel ++ io ++ etc ++ parallel ++ viz;
|
|
});
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
scipy
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# https://github.com/pydata/xarray/issues/11183
|
|
"xarray/tests/test_dataarray.py::TestDataArray::test_curvefit_helpers" # Failed: DID NOT RAISE <class 'ValueError'>
|
|
"xarray/tests/test_variable.py::TestIndexVariable::test_concat_periods" # ValueError: Could not convert <xarray.IndexVariable 't' (t: 5)> Size: 40B
|
|
];
|
|
|
|
pythonImportsCheck = [ "xarray" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/pydata/xarray/blob/${src.tag}/doc/whats-new.rst";
|
|
description = "N-D labeled arrays and datasets in Python";
|
|
homepage = "https://github.com/pydata/xarray";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
doronbehar
|
|
];
|
|
};
|
|
}
|