1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8 base58,
9 coincurve,
10}:
11
12buildPythonPackage rec {
13 pname = "bip32";
14 version = "3.4";
15 pyproject = true;
16
17 disabled = pythonOlder "3.9";
18
19 # the PyPi source distribution ships a broken setup.py, so use github instead
20 src = fetchFromGitHub {
21 owner = "darosior";
22 repo = "python-bip32";
23 rev = version;
24 hash = "sha256-o8UKR17XDWp1wTWYeDL0DJY+D11YI4mg0UuGEAPkHxE=";
25 };
26
27 pythonRelaxDeps = [ "coincurve" ];
28
29 nativeBuildInputs = [ setuptools ];
30
31 propagatedBuildInputs = [
32 base58
33 coincurve
34 ];
35
36 nativeCheckInputs = [ pytestCheckHook ];
37
38 pythonImportsCheck = [ "bip32" ];
39
40 meta = with lib; {
41 description = "Minimalistic implementation of the BIP32 key derivation scheme";
42 homepage = "https://github.com/darosior/python-bip32";
43 changelog = "https://github.com/darosior/python-bip32/blob/${version}/CHANGELOG.md";
44 license = with licenses; [ bsd3 ];
45 maintainers = with maintainers; [ arcnmx ];
46 };
47}