python312Packages.safe-pysha3: fix build

This commit is contained in:
Weijia Wang
2024-01-22 01:40:54 +01:00
parent 27e48d2c55
commit 5a8dbc4958
@@ -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"
];