2022-01-23 13:35:17 -05:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, ed25519, ecdsa , semver, mnemonic
|
|
|
|
, unidecode, mock, pytest , backports-shutil-which, configargparse
|
|
|
|
, python-daemon, pymsgbox, pynacl }:
|
2017-05-31 22:42:35 +02:00
|
|
|
|
2021-08-18 22:13:23 -07:00
|
|
|
# XXX: when changing this package, please test the package onlykey-agent.
|
|
|
|
|
2017-05-31 22:42:35 +02:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libagent";
|
2022-01-23 13:35:17 -05:00
|
|
|
version = "0.14.4";
|
2017-05-31 22:42:35 +02:00
|
|
|
|
2020-06-12 11:42:20 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "romanz";
|
|
|
|
repo = "trezor-agent";
|
|
|
|
rev = "v${version}";
|
2022-01-23 13:35:17 -05:00
|
|
|
sha256 = "1ksv494xpga27ifrjyn1bkqaya5h769lqb9rx1ng0n4kvmnrqr3l";
|
2017-05-31 22:42:35 +02:00
|
|
|
};
|
|
|
|
|
2021-07-20 23:26:16 +02:00
|
|
|
propagatedBuildInputs = [ unidecode backports-shutil-which configargparse
|
2022-01-23 13:35:17 -05:00
|
|
|
python-daemon pymsgbox ecdsa ed25519 mnemonic semver pynacl ];
|
2017-11-07 18:00:57 +00:00
|
|
|
|
|
|
|
checkInputs = [ mock pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test libagent/tests
|
|
|
|
'';
|
2017-10-28 13:42:50 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-05-31 22:42:35 +02:00
|
|
|
description = "Using hardware wallets as SSH/GPG agent";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/romanz/trezor-agent";
|
2021-03-22 17:40:02 +01:00
|
|
|
license = licenses.lgpl3Only;
|
2017-05-31 22:42:35 +02:00
|
|
|
maintainers = with maintainers; [ np ];
|
|
|
|
};
|
|
|
|
}
|