e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cbor2
|
|
, coincurve
|
|
, crcmod
|
|
, ecdsa
|
|
, ed25519-blake2b
|
|
, fetchFromGitHub
|
|
, py-sr25519-bindings
|
|
, pycryptodome
|
|
, pynacl
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bip-utils";
|
|
version = "2.9.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ebellocchia";
|
|
repo = "bip_utils";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-PUWKpAn6Z1E7uMk8+XFm6FDtupzj6eMSkyXR9vN1w3I=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|