python312Packages.eth-utils: tidy code up

This commit is contained in:
Florian Franzen
2025-01-19 17:05:32 +02:00
committed by hellwolf
parent 16b5545f9f
commit 4ee019941b
@@ -1,33 +1,33 @@
{
lib,
fetchFromGitHub,
buildPythonPackage,
fetchFromGitHub,
setuptools,
isPyPy,
# dependencies
eth-hash,
eth-typing,
cytoolz,
hypothesis,
isPyPy,
pytestCheckHook,
pythonOlder,
setuptools,
toolz,
# nativeCheckInputs
hypothesis,
mypy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "eth-utils";
version = "5.1.0";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "ethereum";
repo = "eth-utils";
rev = "v${version}";
tag = "v${version}";
hash = "sha256-uPzg1gUEsulQL2u22R/REHWx1ZtbMxvcXf6UgWqkDF4=";
};
nativeBuildInputs = [ setuptools ];
build-system = [ setuptools ];
propagatedBuildInputs =
[
@@ -39,8 +39,8 @@ buildPythonPackage rec {
nativeCheckInputs = [
hypothesis
pytestCheckHook
mypy
pytestCheckHook
] ++ eth-hash.optional-dependencies.pycryptodome;
pythonImportsCheck = [ "eth_utils" ];