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