python310Packages.eth-utils: adopt, cleanup
This commit is contained in:
parent
8c400570aa
commit
02b136a85d
1 changed files with 25 additions and 7 deletions
|
@ -1,12 +1,21 @@
|
|||
{ lib, fetchFromGitHub, buildPythonPackage, pytestCheckHook, eth-hash, eth-typing,
|
||||
cytoolz, hypothesis }:
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, eth-hash
|
||||
, eth-typing
|
||||
, cytoolz
|
||||
, hypothesis
|
||||
, isPyPy
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, toolz
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "eth-utils";
|
||||
version = "2.0.0";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
# Tests are missing from the PyPI source tarball so let's use GitHub
|
||||
# https://github.com/ethereum/eth-utils/issues/130
|
||||
src = fetchFromGitHub {
|
||||
owner = "ethereum";
|
||||
repo = pname;
|
||||
|
@ -14,8 +23,17 @@ buildPythonPackage rec {
|
|||
sha256 = "sha256-E2vUROc2FcAv00k50YpdxaaYIRDk1yGSPB8cHHw+7Yw=";
|
||||
};
|
||||
|
||||
checkInputs = [ pytestCheckHook hypothesis ];
|
||||
propagatedBuildInputs = [ eth-hash eth-typing cytoolz ];
|
||||
propagatedBuildInputs = [
|
||||
eth-hash
|
||||
eth-typing
|
||||
] ++ lib.optional (!isPyPy) cytoolz
|
||||
++ lib.optional isPyPy toolz;
|
||||
|
||||
|
||||
checkInputs = [
|
||||
hypothesis
|
||||
pytestCheckHook
|
||||
] ++ eth-hash.optional-dependencies.pycryptodome;
|
||||
|
||||
pythonImportsCheck = [ "eth_utils" ];
|
||||
|
||||
|
@ -23,6 +41,6 @@ buildPythonPackage rec {
|
|||
description = "Common utility functions for codebases which interact with ethereum";
|
||||
homepage = "https://github.com/ethereum/eth-utils";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ jluttine ];
|
||||
maintainers = with lib.maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue