1{ lib 2, fetchPypi 3, buildPythonPackage 4, gnupg 5, setuptools 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "pycoin"; 11 version = "0.92.20230326"; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-DYXwATRHw1ay9swLuQOtB+5LcoBe4TtAKWzQgxESwN8="; 16 }; 17 18 propagatedBuildInputs = [ setuptools ]; 19 20 postPatch = '' 21 substituteInPlace ./pycoin/cmds/tx.py --replace '"gpg"' '"${gnupg}/bin/gpg"' 22 ''; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 dontUseSetuptoolsCheck = true; 27 28 # Disable tests depending on online services 29 disabledTests = [ 30 "ServicesTest" 31 "test_tx_pay_to_opcode_list_txt" 32 "test_tx_fetch_unspent" 33 "test_tx_with_gpg" 34 ]; 35 36 meta = with lib; { 37 description = "Utilities for Bitcoin and altcoin addresses and transaction manipulation"; 38 homepage = "https://github.com/richardkiss/pycoin"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ nyanloutre ]; 41 }; 42}