Unverified Commit be46faef authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python3Packages.ml-dtypes: include upstream patch for numpy 2.4.3 (#505893)

parents c7d37c6d 973d6242
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch2,

  # build-system
  setuptools,
@@ -30,6 +31,15 @@ buildPythonPackage rec {
    fetchSubmodules = true;
  };

  patches = [
    # Fix tests for numpy 2.4.3, which changed the way testing assertions
    # handle behaviors with NaN equivalence on the custom numeric types.
    (fetchpatch2 {
      url = "https://github.com/jax-ml/ml_dtypes/commit/04c4dc8b23720d9d92f3cc849ffc387d5798db84.patch?full_index=1";
      hash = "sha256-jqqiDYcHq58JxSqtHfXcNWFbMFhvufqafDPHmORe6F0=";
    })
  ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail "setuptools~=" "setuptools>="