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