1{ lib 2, buildPythonPackage 3, cbor2 4, coincurve 5, crcmod 6, ecdsa 7, ed25519-blake2b 8, fetchFromGitHub 9, py-sr25519-bindings 10, pycryptodome 11, pynacl 12, pytestCheckHook 13, pythonOlder 14}: 15 16buildPythonPackage rec { 17 pname = "bip-utils"; 18 version = "2.8.0"; 19 format = "setuptools"; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchFromGitHub { 24 owner = "ebellocchia"; 25 repo = "bip_utils"; 26 rev = "refs/tags/v${version}"; 27 hash = "sha256-FW3ni7kPB0VeVK/uWjDEeWgilP9dNiuvSaboUpG5DLo="; 28 }; 29 30 propagatedBuildInputs = [ 31 ecdsa 32 cbor2 33 pynacl 34 coincurve 35 crcmod 36 ed25519-blake2b 37 py-sr25519-bindings 38 pycryptodome 39 ]; 40 41 nativeCheckInputs = [ 42 pytestCheckHook 43 ]; 44 45 pythonImportsCheck = [ 46 "bip_utils" 47 ]; 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; [ prusnak stargate01 ]; 55 }; 56}