1{
2 lib,
3 buildPythonPackage,
4 cbor2,
5 coincurve,
6 crcmod,
7 ecdsa,
8 ed25519-blake2b,
9 fetchFromGitHub,
10 py-sr25519-bindings,
11 pycryptodome,
12 pynacl,
13 pytestCheckHook,
14 pythonOlder,
15 setuptools,
16}:
17
18buildPythonPackage rec {
19 pname = "bip-utils";
20 version = "2.9.3";
21 pyproject = true;
22
23 disabled = pythonOlder "3.7";
24
25 src = fetchFromGitHub {
26 owner = "ebellocchia";
27 repo = "bip_utils";
28 tag = "v${version}";
29 hash = "sha256-3G37n/mfI+3JVIkmJWzbB1qPPTE6NJJlFZWdE0fIIWA=";
30 };
31
32 nativeBuildInputs = [ setuptools ];
33
34 propagatedBuildInputs = [
35 ecdsa
36 cbor2
37 pynacl
38 coincurve
39 crcmod
40 ed25519-blake2b
41 py-sr25519-bindings
42 pycryptodome
43 ];
44
45 nativeCheckInputs = [ pytestCheckHook ];
46
47 pythonImportsCheck = [ "bip_utils" ];
48
49 meta = with lib; {
50 description = "Implementation of BIP39, BIP32, BIP44, BIP49 and BIP84 for wallet seeds, keys and addresses generation";
51 homepage = "https://github.com/ebellocchia/bip_utils";
52 changelog = "https://github.com/ebellocchia/bip_utils/blob/v${version}/CHANGELOG.md";
53 license = with licenses; [ mit ];
54 maintainers = with maintainers; [
55 prusnak
56 stargate01
57 ];
58 };
59}