2020-07-15 10:37:34 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-10-02 21:19:23 +01:00
|
|
|
, fetchFromGitHub
|
2020-08-15 23:43:16 +01:00
|
|
|
, pythonOlder
|
2020-07-15 10:37:34 +01:00
|
|
|
, ecdsa
|
|
|
|
, pysha3
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bip_utils";
|
2021-03-12 15:24:02 +00:00
|
|
|
version = "1.7.0";
|
2020-07-15 10:37:34 +01:00
|
|
|
|
2020-08-15 23:43:16 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-07-15 10:37:34 +01:00
|
|
|
|
2020-10-02 21:19:23 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ebellocchia";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-03-12 15:24:02 +00:00
|
|
|
sha256 = "1dj0c9sj0c4dkdf7rbz3s1z5kfzw22hpncm4bnwqigjzi6nrk81z";
|
2020-07-15 10:37:34 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|