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

python312Packages.safe-pysha3: fix build
This commit is contained in:
Weijia Wang
2024-01-24 00:32:45 +01:00
committed by GitHub
@@ -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"
];