2020-07-18 16:06:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-10-07 09:15:18 +00:00
|
|
|
, fetchFromGitHub
|
2020-08-20 17:08:02 +00:00
|
|
|
, pythonOlder
|
2020-07-18 16:06:22 +00:00
|
|
|
, ecdsa
|
|
|
|
, pysha3
|
2022-10-21 18:38:19 +00:00
|
|
|
, coincurve
|
|
|
|
, pynacl
|
|
|
|
, crcmod
|
|
|
|
, ed25519-blake2b
|
|
|
|
, py-sr25519-bindings
|
|
|
|
, cbor2
|
|
|
|
, pycryptodome
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bip_utils";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "2.7.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ebellocchia";
|
|
|
|
repo = pname;
|
2022-10-21 18:38:19 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-m7/CC5/T6qR2Ot4y5WQlzOAR0czz6XHCjJskES+2nns=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
ecdsa
|
|
|
|
pysha3
|
|
|
|
cbor2
|
|
|
|
pynacl
|
|
|
|
coincurve
|
|
|
|
crcmod
|
|
|
|
ed25519-blake2b
|
|
|
|
py-sr25519-bindings
|
|
|
|
pycryptodome
|
|
|
|
];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"bip_utils"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Implementation of BIP39, BIP32, BIP44, BIP49 and BIP84 for wallet seeds, keys and addresses generation";
|
|
|
|
homepage = "https://github.com/ebellocchia/bip_utils";
|
|
|
|
license = with lib.licenses; [ mit ];
|
2022-10-21 18:38:19 +00:00
|
|
|
maintainers = with lib.maintainers; [ prusnak stargate01 ];
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
}
|