nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, fetchFromGitHub, buildPythonPackage, ed25519, ecdsa , semver, mnemonic
2, unidecode, mock, pytest , backports-shutil-which, configargparse
3, python-daemon, pymsgbox, pynacl }:
4
5# XXX: when changing this package, please test the package onlykey-agent.
6
7buildPythonPackage rec {
8 pname = "libagent";
9 version = "0.14.4";
10
11 src = fetchFromGitHub {
12 owner = "romanz";
13 repo = "trezor-agent";
14 rev = "v${version}";
15 sha256 = "1ksv494xpga27ifrjyn1bkqaya5h769lqb9rx1ng0n4kvmnrqr3l";
16 };
17
18 propagatedBuildInputs = [ unidecode backports-shutil-which configargparse
19 python-daemon pymsgbox ecdsa ed25519 mnemonic semver pynacl ];
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}