Files
nixpkgs/pkgs/development/python-modules/pycoin/default.nix
Yueh-Shun Li aa18717844 python3Packages.pycoin: remove dontUseSetuptoolsCheck specification
setuptooolsCheckHooks has been removed.
2025-02-20 17:09:25 +08:00

43 lines
939 B
Nix

{
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 = 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 ];
};
}