Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / bip32 / default.nix
blob96f37498c93bc5446d6ed2137bdece48bb037ba7
1 { lib
2 , fetchFromGitHub
3 , buildPythonPackage
4 , pytestCheckHook
5 , pythonOlder
6 , setuptools
7 , base58
8 , coincurve
9 }:
11 buildPythonPackage rec {
12   pname = "bip32";
13   version = "3.4";
14   pyproject = true;
16   disabled = pythonOlder "3.9";
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   };
26   nativeBuildInputs = [
27     setuptools
28   ];
30   propagatedBuildInputs = [
31     base58
32     coincurve
33   ];
35   nativeCheckInputs = [
36     pytestCheckHook
37   ];
39   pythonImportsCheck = [
40     "bip32"
41   ];
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   };