2020-07-15 11:37:34 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-10-02 22:19:23 +02:00
|
|
|
, fetchFromGitHub
|
2020-08-16 00:43:16 +02:00
|
|
|
, pythonOlder
|
2020-07-15 11:37:34 +02:00
|
|
|
, ecdsa
|
|
|
|
, pysha3
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bip_utils";
|
2021-06-19 03:39:04 +02:00
|
|
|
version = "1.11.1";
|
2020-07-15 11:37:34 +02:00
|
|
|
|
2020-08-16 00:43:16 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-07-15 11:37:34 +02:00
|
|
|
|
2020-10-02 22:19:23 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ebellocchia";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-06-19 03:39:04 +02:00
|
|
|
sha256 = "0r8h979rklq7cvl0b449mfrx62dv367s31zgwfqn81kj72i3ndg4";
|
2020-07-15 11:37:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ ecdsa pysha3 ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
maintainers = with lib.maintainers; [ prusnak ];
|
|
|
|
};
|
|
|
|
}
|