1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
isPyPy,
# dependencies
eth-hash,
eth-typing,
cytoolz,
toolz,
pydantic,
# nativeCheckInputs
hypothesis,
mypy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "eth-utils";
version = "5.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "ethereum";
repo = "eth-utils";
tag = "v${version}";
hash = "sha256-uyUsX9jX2KumrERrIc6nXloH0G+rQeKzFMwex+Mh3eM=";
};
build-system = [ setuptools ];
propagatedBuildInputs = [
eth-hash
eth-typing
]
++ lib.optional (!isPyPy) cytoolz
++ lib.optional isPyPy toolz;
nativeCheckInputs = [
hypothesis
mypy
pytestCheckHook
pydantic
]
++ eth-hash.optional-dependencies.pycryptodome;
pythonImportsCheck = [ "eth_utils" ];
disabledTests = [ "test_install_local_wheel" ];
meta = {
changelog = "https://github.com/ethereum/eth-utils/blob/${src.rev}/docs/release_notes.rst";
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; [ siraben ];
};
}
|