mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
43 lines
942 B
Nix
43 lines
942 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, gnupg
|
|
, setuptools
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycoin";
|
|
version = "0.92.20220529";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-PQOWR1teLZ2npQV+q3K+DgiFBejkRoB4gQYjaHLFQqI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ setuptools ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace ./pycoin/cmds/tx.py --replace '"gpg"' '"${gnupg}/bin/gpg"'
|
|
'';
|
|
|
|
nativeCheckInputs = [ 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 ];
|
|
};
|
|
}
|