2018-08-26 12:44:38 +00:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, ed25519, ecdsa , semver, mnemonic,
|
|
|
|
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";
|
2019-04-16 17:15:37 +00:00
|
|
|
version = "0.13.1";
|
2017-05-31 20:42:35 +00:00
|
|
|
|
|
|
|
src = fetchPypi{
|
|
|
|
inherit pname version;
|
2019-04-16 17:15:37 +00:00
|
|
|
sha256 = "b9afa0851f668612702fcd648cee47af4dc7cfe4f86d4c4a84b1a6b4a4960b41";
|
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
|
|
|
|
2017-05-31 20:42:35 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Using hardware wallets as SSH/GPG agent";
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = https://github.com/romanz/trezor-agent;
|
2017-05-31 20:42:35 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ np ];
|
|
|
|
};
|
|
|
|
}
|