Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / bip32 / default.nix
blob165cf6231eea6f3d402e4fde4eea5b2f5cd625fe
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   # https://github.com/darosior/python-bip32/pull/40/files
27   postPatch = ''
28     substituteInPlace requirements.txt \
29       --replace-fail 'coincurve>=15.0,<19' 'coincurve>=15.0,<20'
30   '';
32   nativeBuildInputs = [
33     setuptools
34   ];
36   propagatedBuildInputs = [
37     base58
38     coincurve
39   ];
41   nativeCheckInputs = [
42     pytestCheckHook
43   ];
45   pythonImportsCheck = [
46     "bip32"
47   ];
49   meta = with lib; {
50     description = "Minimalistic implementation of the BIP32 key derivation scheme";
51     homepage = "https://github.com/darosior/python-bip32";
52     changelog = "https://github.com/darosior/python-bip32/blob/${version}/CHANGELOG.md";
53     license = with licenses; [ bsd3 ];
54     maintainers = with maintainers; [ arcnmx ];
55   };