Skip to content

Commit 5a8dbc4

Browse files
committed
python312Packages.safe-pysha3: fix build
1 parent 27e48d2 commit 5a8dbc4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkgs/development/python-modules/safe-pysha3/default.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
, buildPythonPackage
33
, fetchPypi
44
, pythonOlder
5-
, python
65
}:
76

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

18+
# AttributeError: 'Keccak_224Tests' object has no attribute 'failIf'.
19+
postPatch = ''
20+
substituteInPlace tests.py \
21+
--replace "failIf" "assertFalse"
22+
'';
23+
1924
pythonImportsCheck = [
2025
"sha3"
2126
];

0 commit comments

Comments
 (0)