Unverified Commit c065215a authored by Mauricio Collares's avatar Mauricio Collares Committed by GitHub
Browse files

python3Packages.gmpy2: handle Python 3.13.8's new to_bytes behavior (#455396)

parents 6823d3ae 939b5a9d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch2,
  isPyPy,
  setuptools,
  gmp,
@@ -30,6 +31,14 @@ buildPythonPackage rec {
    hash = "sha256-wrMN3kqLnjItoybKYeo4Pp2M0uma7Kg0JEQM8lr6OI0=";
  };

  patches = [
    (fetchpatch2 {
      name = "fix-to_bytes-tests.patch";
      url = "https://github.com/aleaxit/gmpy/commit/1903841667e7a6842bdead90bd7798b99de5b7be.patch?full_index=1";
      hash = "sha256-rlssUIkQ1RCRSu5eCXKJ2lNa/oIoLzf9sxJuNfDrVmk=";
    })
  ];

  build-system = [ setuptools ];

  buildInputs = [