Unverified Commit ecbaaa8d authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #282737 from wegank/safe-pysha3-fix

python312Packages.safe-pysha3: fix build
parents cb0b1d37 5a8dbc49
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
, buildPythonPackage
, fetchPypi
, pythonOlder
, python
}:

buildPythonPackage rec {
@@ -16,6 +15,12 @@ buildPythonPackage rec {
    hash = "sha256-5CkUax7dGYssqTSiBGplZWxdMbDsiUu9YFUSf03q/xc=";
  };

  # AttributeError: 'Keccak_224Tests' object has no attribute 'failIf'.
  postPatch = ''
    substituteInPlace tests.py \
      --replace "failIf" "assertFalse"
  '';

  pythonImportsCheck = [
    "sha3"
  ];