Merge pull request #233264 from ivan/python38-eth-hash

This commit is contained in:
Sandro
2023-05-22 13:34:14 +02:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
@@ -1,6 +1,7 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, pythonAtLeast
, pythonOlder
, pytest
, safe-pysha3
@@ -22,10 +23,14 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytest
] ++ passthru.optional-dependencies.pycryptodome
++ passthru.optional-dependencies.pysha3;
# eth-hash can use either safe-pysha3 or pycryptodome;
# safe-pysha3 requires Python 3.9+ while pycryptodome does not.
# https://github.com/ethereum/eth-hash/issues/46#issuecomment-1314029211
++ lib.optional (pythonAtLeast "3.9") passthru.optional-dependencies.pysha3;
checkPhase = ''
pytest tests/backends/pycryptodome/
'' + lib.optionalString (pythonAtLeast "3.9") ''
pytest tests/backends/pysha3/
'';
@@ -80,7 +80,7 @@ buildPythonPackage rec {
pname = "matplotlib";
format = "pyproject";
disabled = pythonOlder "3.9";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;