mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3{13,14}Packages.xarray: fix build with numpy => 2.5.0
This commit is contained in:
parent
25e094b684
commit
85416f7465
1 changed files with 17 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
|
@ -51,6 +52,22 @@ buildPythonPackage (finalAttrs: {
|
|||
hash = "sha256-BsgL+Xo9fTMLLdz5AfScnKGuBa76cE85LuUzB4ZNLiY=";
|
||||
};
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue