2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-04-25 11:58:52 +01:00
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, gnupg
|
|
|
|
, setuptools
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycoin";
|
2020-11-04 14:04:23 +00:00
|
|
|
version = "0.90.20201031";
|
2020-04-25 11:58:52 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-04 14:04:23 +00:00
|
|
|
sha256 = "65c19204cb7aece4aae30c44b5e08beecb9c118370a9f9994d6cddaee17c351d";
|
2020-04-25 11:58:52 +01: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 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-25 11:58:52 +01:00
|
|
|
description = "Utilities for Bitcoin and altcoin addresses and transaction manipulation";
|
|
|
|
homepage = "https://github.com/richardkiss/pycoin";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nyanloutre ];
|
|
|
|
};
|
|
|
|
}
|