Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 73 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374{ lib, fetchFromGitHub, bech32, buildPythonPackage, cryptography, ed25519, ecdsa, gnupg, semver, mnemonic, unidecode, mock, pytest, backports-shutil-which, configargparse, python-daemon, pymsgbox, pynacl,}:
# When changing this package, please test packages {keepkey,ledger,onlykey,trezor}-agent
buildPythonPackage rec { pname = "libagent"; version = "0.14.8"; format = "setuptools";
src = fetchFromGitHub { owner = "romanz"; repo = "trezor-agent"; rev = "v${version}"; hash = "sha256-tcVott/GlHsICQf640Gm5jx89fZWsCdcYnBxi/Kh2oc="; };
# 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'" '';
propagatedBuildInputs = [ unidecode backports-shutil-which configargparse python-daemon pymsgbox ecdsa ed25519 mnemonic semver pynacl bech32 cryptography ];
nativeCheckInputs = [ mock pytest ];
checkPhase = '' py.test libagent/tests '';
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 ]; };}