Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pycoin / default.nix
blobd42cfcadfee562b47496bb2f6ed03ba7da32f16d
1 { lib
2 , fetchPypi
3 , buildPythonPackage
4 , gnupg
5 , setuptools
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "pycoin";
11   version = "0.90.20201031";
13   src = fetchPypi {
14     inherit pname version;
15     sha256 = "65c19204cb7aece4aae30c44b5e08beecb9c118370a9f9994d6cddaee17c351d";
16   };
18   propagatedBuildInputs = [ setuptools ];
20   postPatch = ''
21     substituteInPlace ./pycoin/cmds/tx.py --replace '"gpg"' '"${gnupg}/bin/gpg"'
22   '';
24   checkInputs = [ pytestCheckHook ];
26   dontUseSetuptoolsCheck = true;
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   ];
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   };