2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2020-04-25 12:58:52 +02:00
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, gnupg
|
|
|
|
, setuptools
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycoin";
|
2021-06-18 23:47:31 +02:00
|
|
|
version = "0.91.20210515";
|
2020-04-25 12:58:52 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 23:47:31 +02:00
|
|
|
sha256 = "d2231a8d11b2524c26472d08cf1b76569849ab44507495d0510165ae0af4858e";
|
2020-04-25 12:58:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-25 12:58:52 +02:00
|
|
|
description = "Utilities for Bitcoin and altcoin addresses and transaction manipulation";
|
|
|
|
homepage = "https://github.com/richardkiss/pycoin";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nyanloutre ];
|
|
|
|
};
|
|
|
|
}
|