792b51d22f
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
42 lines
936 B
Nix
42 lines
936 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, gnupg
|
|
, setuptools
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycoin";
|
|
version = "0.92.20220213";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-qb2jtb/bHJSmtnQbYTFgCgBY0OCsrxsWJ7SJFeEDytc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ setuptools ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace ./pycoin/cmds/tx.py --replace '"gpg"' '"${gnupg}/bin/gpg"'
|
|
'';
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
# Disable tests depending on online services
|
|
disabledTests = [
|
|
"ServicesTest"
|
|
"test_tx_pay_to_opcode_list_txt"
|
|
"test_tx_fetch_unspent"
|
|
"test_tx_with_gpg"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Utilities for Bitcoin and altcoin addresses and transaction manipulation";
|
|
homepage = "https://github.com/richardkiss/pycoin";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ nyanloutre ];
|
|
};
|
|
}
|