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