2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, ed25519, ecdsa , semver, mnemonic,
|
2018-08-26 12:44:38 +00:00
|
|
|
unidecode, mock, pytest , backports-shutil-which, ConfigArgParse,
|
2018-10-05 01:51:46 +00:00
|
|
|
python-daemon, pymsgbox }:
|
2017-05-31 20:42:35 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libagent";
|
2020-06-06 06:47:16 +00:00
|
|
|
version = "0.14.1";
|
2017-05-31 20:42:35 +00:00
|
|
|
|
2020-06-12 18:42:20 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "romanz";
|
|
|
|
repo = "trezor-agent";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "16y1y9ahcv3wj7f0v4mfiwzkmn2hz1iv7y13cgr57sxa3ymyqx6c";
|
2017-05-31 20:42:35 +00:00
|
|
|
};
|
|
|
|
|
2018-08-26 12:44:38 +00:00
|
|
|
propagatedBuildInputs = [ unidecode backports-shutil-which ConfigArgParse
|
2018-10-05 01:51:46 +00:00
|
|
|
python-daemon pymsgbox ecdsa ed25519 mnemonic semver ];
|
2017-11-07 18:00:57 +00:00
|
|
|
|
|
|
|
checkInputs = [ mock pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test libagent/tests
|
|
|
|
'';
|
2017-10-28 12:42:50 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-05-31 20:42:35 +00:00
|
|
|
description = "Using hardware wallets as SSH/GPG agent";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/romanz/trezor-agent";
|
2021-03-22 16:40:02 +00:00
|
|
|
license = licenses.lgpl3Only;
|
2017-05-31 20:42:35 +00:00
|
|
|
maintainers = with maintainers; [ np ];
|
|
|
|
};
|
|
|
|
}
|