From 4ee019941b6efe7e69c98dae0a7744a0afda6961 Mon Sep 17 00:00:00 2001 From: Florian Franzen Date: Tue, 17 Sep 2024 15:03:06 +0200 Subject: [PATCH] python312Packages.eth-utils: tidy code up --- .../python-modules/eth-utils/default.nix | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/eth-utils/default.nix b/pkgs/development/python-modules/eth-utils/default.nix index feb07cbac013..b170e2443b30 100644 --- a/pkgs/development/python-modules/eth-utils/default.nix +++ b/pkgs/development/python-modules/eth-utils/default.nix @@ -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" ];