Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 82 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283{ lib, fetchFromGitHub, backports-shutil-which, bech32, buildPythonPackage, setuptools, cryptography, ed25519, ecdsa, gnupg, semver, mnemonic, unidecode, mock, pytestCheckHook, configargparse, python-daemon, pymsgbox, pynacl,}:
# When changing this package, please test packages {keepkey,ledger,onlykey,trezor}-agent
buildPythonPackage rec { pname = "libagent"; version = "0.15.0"; pyproject = true;
src = fetchFromGitHub { owner = "romanz"; repo = "trezor-agent"; tag = "v${version}"; hash = "sha256-NmpFyLjLdR9r1tc06iDNH8Tc7isUelTg13mWPrQvxSc="; };
# hardcode the path to gpgconf in the libagent library postPatch = '' substituteInPlace libagent/gpg/keyring.py \ --replace "util.which('gpgconf')" "'${gnupg}/bin/gpgconf'" \ --replace "'gpg-connect-agent'" "'${gnupg}/bin/gpg-connect-agent'" '';
build-system = [ setuptools ];
# https://github.com/romanz/trezor-agent/pull/481 pythonRemoveDeps = [ "backports.shutil-which" ];
dependencies = [ backports-shutil-which unidecode configargparse python-daemon pymsgbox ecdsa ed25519 mnemonic semver pynacl bech32 cryptography ];
pythonImportsCheck = [ "libagent" ];
nativeCheckInputs = [ mock pytestCheckHook ];
disabledTests = [ # test fails in sandbox "test_get_agent_sock_path" ];
meta = with lib; { description = "Using hardware wallets as SSH/GPG agent"; homepage = "https://github.com/romanz/trezor-agent"; license = licenses.lgpl3Only; maintainers = with maintainers; [ np ]; };}