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