about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-31 01:56:49 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-31 01:56:49 +0100
commitea43ffa1107c83842a8bdab22a5a42a97314414c (patch)
tree97f80d43eff5df48b42c2c38d10648ae60310ebc
parent41b23132eb94a7f4444e1b73cd8bc8a67f5acef4 (diff)
python311Packages.eth-hash: fix build
-rw-r--r--pkgs/development/python-modules/eth-hash/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/eth-hash/default.nix b/pkgs/development/python-modules/eth-hash/default.nix
index 008aa6038826f..7f5b436a14f50 100644
--- a/pkgs/development/python-modules/eth-hash/default.nix
+++ b/pkgs/development/python-modules/eth-hash/default.nix
@@ -4,6 +4,7 @@
 , pythonOlder
 , pytest
 , pysha3
+, safe-pysha3
 , pycryptodome
 }:
 
@@ -31,7 +32,7 @@ buildPythonPackage rec {
 
   passthru.optional-dependencies = {
     pycryptodome = [ pycryptodome ];
-    pysha3 = [ pysha3 ];
+    pysha3 = if pythonOlder "3.9" then [ pysha3 ] else [ safe-pysha3 ];
   };
 
   meta = with lib; {