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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
bitarray,
ckzg,
eth-abi,
eth-keyfile,
eth-keys,
eth-rlp,
eth-utils,
hexbytes,
rlp,
websockets,
# tests
hypothesis,
pydantic,
pytestCheckHook,
pytest-xdist,
}:
buildPythonPackage rec {
pname = "eth-account";
version = "0.13.7";
pyproject = true;
src = fetchFromGitHub {
owner = "ethereum";
repo = "eth-account";
tag = "v${version}";
hash = "sha256-Ipz2zIKCpIzKBtX0UZnvpKZeTUcDPbGTzMgmcJC/4qs=";
};
build-system = [ setuptools ];
dependencies = [
bitarray
ckzg
eth-abi
eth-keyfile
eth-keys
eth-rlp
eth-utils
hexbytes
pydantic
rlp
websockets
];
nativeCheckInputs = [
hypothesis
pydantic
pytestCheckHook
pytest-xdist
];
disabledTests = [
# requires local nodejs install
"test_messages_where_all_3_sigs_match"
"test_messages_where_eth_account_matches_ethers_but_not_metamask"
"test_messages_where_eth_account_matches_metamask_but_not_ethers"
# disable flaky fuzzing test
"test_compatibility"
# Attempts at installing the wheel
"test_install_local_wheel"
];
pythonImportsCheck = [ "eth_account" ];
pythonRelaxDeps = [ "eth-keyfile" ];
meta = {
description = "Account abstraction library for web3.py";
homepage = "https://github.com/ethereum/eth-account";
changelog = "https://github.com/ethereum/eth-account/blob/v${version}/docs/release_notes.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hellwolf ];
};
}
|