16 backports-shutil-which,
23 # When changing this package, please test packages {keepkey,ledger,onlykey,trezor}-agent
25 buildPythonPackage rec {
30 src = fetchFromGitHub {
32 repo = "trezor-agent";
33 rev = "refs/tags/v${version}";
34 hash = "sha256-NmpFyLjLdR9r1tc06iDNH8Tc7isUelTg13mWPrQvxSc=";
37 # hardcode the path to gpgconf in the libagent library
39 substituteInPlace libagent/gpg/keyring.py \
40 --replace "util.which('gpgconf')" "'${gnupg}/bin/gpgconf'" \
41 --replace "'gpg-connect-agent'" "'${gnupg}/bin/gpg-connect-agent'"
44 build-system = [ setuptools ];
48 backports-shutil-which
61 pythonImportsCheck = [ "libagent" ];
69 # test fails in sandbox
70 "test_get_agent_sock_path"
74 description = "Using hardware wallets as SSH/GPG agent";
75 homepage = "https://github.com/romanz/trezor-agent";
76 license = licenses.lgpl3Only;
77 maintainers = with maintainers; [ np ];