1{ lib, fetchFromGitHub, buildPythonPackage, ed25519, ecdsa , semver, mnemonic,
2 unidecode, mock, pytest , backports-shutil-which, configargparse,
3 python-daemon, pymsgbox }:
4
5# XXX: when changing this package, please test the package onlykey-agent.
6
7buildPythonPackage rec {
8 pname = "libagent";
9 version = "0.14.1";
10
11 src = fetchFromGitHub {
12 owner = "romanz";
13 repo = "trezor-agent";
14 rev = "v${version}";
15 sha256 = "16y1y9ahcv3wj7f0v4mfiwzkmn2hz1iv7y13cgr57sxa3ymyqx6c";
16 };
17
18 propagatedBuildInputs = [ unidecode backports-shutil-which configargparse
19 python-daemon pymsgbox ecdsa ed25519 mnemonic semver ];
20
21 checkInputs = [ mock pytest ];
22
23 checkPhase = ''
24 py.test libagent/tests
25 '';
26
27 meta = with lib; {
28 description = "Using hardware wallets as SSH/GPG agent";
29 homepage = "https://github.com/romanz/trezor-agent";
30 license = licenses.lgpl3Only;
31 maintainers = with maintainers; [ np ];
32 };
33}