2020-07-18 16:06:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-11-16 04:20:00 +00:00
|
|
|
, cbor2
|
2022-10-21 18:38:19 +00:00
|
|
|
, coincurve
|
|
|
|
, crcmod
|
2023-11-16 04:20:00 +00:00
|
|
|
, ecdsa
|
2022-10-21 18:38:19 +00:00
|
|
|
, ed25519-blake2b
|
2023-11-16 04:20:00 +00:00
|
|
|
, fetchFromGitHub
|
2022-10-21 18:38:19 +00:00
|
|
|
, py-sr25519-bindings
|
|
|
|
, pycryptodome
|
2023-11-16 04:20:00 +00:00
|
|
|
, pynacl
|
2023-10-19 13:55:26 +00:00
|
|
|
, pytestCheckHook
|
2023-11-16 04:20:00 +00:00
|
|
|
, pythonOlder
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-02-02 18:25:31 +00:00
|
|
|
pname = "bip-utils";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2.9.0";
|
2023-02-02 18:25:31 +00:00
|
|
|
format = "setuptools";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ebellocchia";
|
2023-02-02 18:25:31 +00:00
|
|
|
repo = "bip_utils";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-PUWKpAn6Z1E7uMk8+XFm6FDtupzj6eMSkyXR9vN1w3I=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
ecdsa
|
|
|
|
cbor2
|
|
|
|
pynacl
|
|
|
|
coincurve
|
|
|
|
crcmod
|
|
|
|
ed25519-blake2b
|
|
|
|
py-sr25519-bindings
|
|
|
|
pycryptodome
|
|
|
|
];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"bip_utils"
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-07-18 16:06:22 +00:00
|
|
|
description = "Implementation of BIP39, BIP32, BIP44, BIP49 and BIP84 for wallet seeds, keys and addresses generation";
|
|
|
|
homepage = "https://github.com/ebellocchia/bip_utils";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/ebellocchia/bip_utils/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ prusnak stargate01 ];
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
}
|