python3Packages.xarray: 2026.04.0 -> 2026.07.0

https://github.com/pydata/xarray/blob/v2026.07.0/doc/whats-new.rst
This commit is contained in:
Martin Weinelt
2026-07-13 10:50:45 +02:00
parent 21bc71ff24
commit c42b6bbbf3

View File

@@ -2,7 +2,6 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
# build-system
setuptools,
@@ -40,7 +39,7 @@
buildPythonPackage (finalAttrs: {
pname = "xarray";
version = "2026.04.0";
version = "2026.07.0";
pyproject = true;
# Needed mainly for pytestFlags with spaces
__structuredAttrs = true;
@@ -49,25 +48,9 @@ buildPythonPackage (finalAttrs: {
owner = "pydata";
repo = "xarray";
tag = "v${finalAttrs.version}";
hash = "sha256-BsgL+Xo9fTMLLdz5AfScnKGuBa76cE85LuUzB4ZNLiY=";
hash = "sha256-dj6V/HkHRm1kjHlAHUjN7pGCa1ioW11o1fdKUyxI8e0=";
};
patches = [
# Performance fix
(fetchpatch {
url = "https://github.com/pydata/xarray/commit/b8bfeca3275045ca82adc3401c38444b1ed12c4a.patch";
hash = "sha256-KzN45MqOBPMNEmoG+rb3iwrk/7XFLlTNktQf5uYBWNo=";
})
# Fix tests with numpy >= 2.5.0
(fetchpatch {
url = "https://github.com/pydata/xarray/commit/c3a398e856f7fcff1c18bc72bfd1ab9c64d5a2e7.patch";
excludes = [
"doc/whats-new.rst"
];
hash = "sha256-TakZ9RrJHeRksT3oBe7AKyfrjZeZ4oSmbE8axh7EmGg=";
})
];
postPatch = ''
# don't depend on pytest-mypy-plugins
sed -i "/--mypy-/d" pyproject.toml