diff options
Diffstat (limited to 'pkgs/development/python-modules/bip-utils/default.nix')
-rw-r--r-- | pkgs/development/python-modules/bip-utils/default.nix | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/bip-utils/default.nix b/pkgs/development/python-modules/bip-utils/default.nix new file mode 100644 index 00000000000..1608ecdf89f --- /dev/null +++ b/pkgs/development/python-modules/bip-utils/default.nix @@ -0,0 +1,56 @@ +{ lib +, buildPythonPackage +, cbor2 +, coincurve +, crcmod +, ecdsa +, ed25519-blake2b +, fetchFromGitHub +, py-sr25519-bindings +, pycryptodome +, pynacl +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "bip-utils"; + version = "2.8.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "ebellocchia"; + repo = "bip_utils"; + rev = "refs/tags/v${version}"; + hash = "sha256-FW3ni7kPB0VeVK/uWjDEeWgilP9dNiuvSaboUpG5DLo="; + }; + + propagatedBuildInputs = [ + ecdsa + cbor2 + pynacl + coincurve + crcmod + ed25519-blake2b + py-sr25519-bindings + pycryptodome + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "bip_utils" + ]; + + meta = with lib; { + description = "Implementation of BIP39, BIP32, BIP44, BIP49 and BIP84 for wallet seeds, keys and addresses generation"; + homepage = "https://github.com/ebellocchia/bip_utils"; + changelog = "https://github.com/ebellocchia/bip_utils/blob/v${version}/CHANGELOG.md"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ prusnak stargate01 ]; + }; +} |