python3Packages.keras: fix tests with numpy 2.4

This commit is contained in:
Martin Weinelt
2026-02-20 02:30:03 +01:00
parent 8d8b939123
commit 352d653d24
@@ -3,6 +3,7 @@
stdenv,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
# build-system
setuptools,
@@ -47,6 +48,14 @@ buildPythonPackage (finalAttrs: {
hash = "sha256-7s3bJdkS/G/Ydj9txbtGrqGCE3PjjS1ZiuoGOzk+UIg=";
};
patches = [
(fetchpatch {
name = "numpy-2.4-compat.patch";
url = "https://github.com/keras-team/keras/commit/bc3bc4fc167049eb35136deaf5680cdaacc80371.patch";
hash = "sha256-+eN3QVBpHGIv67hbRxzVHeKjFZIz5LCdbNO0AL65OoQ=";
})
];
build-system = [
setuptools
];