at 24.11-pre 1.2 kB view raw
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 # https://github.com/darosior/python-bip32/pull/40/files 28 postPatch = '' 29 substituteInPlace requirements.txt \ 30 --replace-fail 'coincurve>=15.0,<19' 'coincurve>=15.0,<20' 31 ''; 32 33 nativeBuildInputs = [ setuptools ]; 34 35 propagatedBuildInputs = [ 36 base58 37 coincurve 38 ]; 39 40 nativeCheckInputs = [ pytestCheckHook ]; 41 42 pythonImportsCheck = [ "bip32" ]; 43 44 meta = with lib; { 45 description = "Minimalistic implementation of the BIP32 key derivation scheme"; 46 homepage = "https://github.com/darosior/python-bip32"; 47 changelog = "https://github.com/darosior/python-bip32/blob/${version}/CHANGELOG.md"; 48 license = with licenses; [ bsd3 ]; 49 maintainers = with maintainers; [ arcnmx ]; 50 }; 51}