Unverified Commit 352d653d authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python3Packages.keras: fix tests with numpy 2.4

parent 8d8b9391
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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
  ];