Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 80 lines
Nix
at gcc-offload
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081{ lib, fetchFromGitHub, 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"; rev = "refs/tags/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 = [ 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 ]; };}