From 5a8dbc495812f897ebe60c45063c27db296e8aa1 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Mon, 22 Jan 2024 01:40:54 +0100 Subject: [PATCH] python312Packages.safe-pysha3: fix build --- pkgs/development/python-modules/safe-pysha3/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/safe-pysha3/default.nix b/pkgs/development/python-modules/safe-pysha3/default.nix index a71cce569ce7..bb96ee1c2dcb 100644 --- a/pkgs/development/python-modules/safe-pysha3/default.nix +++ b/pkgs/development/python-modules/safe-pysha3/default.nix @@ -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" ];