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

python312Packages.safe-pysha3: fix build

authored by Weijia Wang and committed by GitHub ecbaaa8d cb0b1d37

+6 -1
+6 -1
pkgs/development/python-modules/safe-pysha3/default.nix
··· 2 , buildPythonPackage 3 , fetchPypi 4 , pythonOlder 5 - , python 6 }: 7 8 buildPythonPackage rec { ··· 15 inherit pname version; 16 hash = "sha256-5CkUax7dGYssqTSiBGplZWxdMbDsiUu9YFUSf03q/xc="; 17 }; 18 19 pythonImportsCheck = [ 20 "sha3"
··· 2 , buildPythonPackage 3 , fetchPypi 4 , pythonOlder 5 }: 6 7 buildPythonPackage rec { ··· 14 inherit pname version; 15 hash = "sha256-5CkUax7dGYssqTSiBGplZWxdMbDsiUu9YFUSf03q/xc="; 16 }; 17 + 18 + # AttributeError: 'Keccak_224Tests' object has no attribute 'failIf'. 19 + postPatch = '' 20 + substituteInPlace tests.py \ 21 + --replace "failIf" "assertFalse" 22 + ''; 23 24 pythonImportsCheck = [ 25 "sha3"