1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 bitarray,
6 eth-abi,
7 eth-keyfile,
8 eth-keys,
9 eth-rlp,
10 eth-utils,
11 websockets,
12 hexbytes,
13 pythonOlder,
14 rlp,
15}:
16
17buildPythonPackage rec {
18 pname = "eth-account";
19 version = "0.9.0";
20 format = "setuptools";
21 disabled = pythonOlder "3.7";
22
23 src = fetchFromGitHub {
24 owner = "ethereum";
25 repo = "eth-account";
26 rev = "v${version}";
27 hash = "sha256-Ps/vzJv0W1+wy1mSJaqRNNU6CoCMchReHIocB9kPrGs=";
28 };
29
30 propagatedBuildInputs = [
31 bitarray
32 eth-abi
33 eth-keyfile
34 eth-keys
35 eth-rlp
36 eth-utils
37 hexbytes
38 rlp
39 websockets
40 ];
41
42 # require buildinga npm project
43 doCheck = false;
44
45 pythonImportsCheck = [ "eth_account" ];
46
47 meta = with lib; {
48 description = "Account abstraction library for web3.py";
49 homepage = "https://github.com/ethereum/eth-account";
50 license = licenses.mit;
51 maintainers = with maintainers; [ ];
52 };
53}