2018-08-26 13:44:38 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, ed25519, ecdsa , semver, mnemonic,
|
|
|
|
unidecode, mock, pytest , backports-shutil-which, ConfigArgParse,
|
2018-10-05 02:51:46 +01:00
|
|
|
python-daemon, pymsgbox }:
|
2017-05-31 21:42:35 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libagent";
|
2018-11-20 10:58:36 +00:00
|
|
|
version = "0.12.1";
|
2017-05-31 21:42:35 +01:00
|
|
|
|
|
|
|
src = fetchPypi{
|
|
|
|
inherit pname version;
|
2018-11-20 10:58:36 +00:00
|
|
|
sha256 = "f21515a217125b7c8cbb1f53327d1d4363c1b980a7e246feabf91aed9b1c51e5";
|
2017-05-31 21:42:35 +01:00
|
|
|
};
|
|
|
|
|
2018-08-26 13:44:38 +01:00
|
|
|
propagatedBuildInputs = [ unidecode backports-shutil-which ConfigArgParse
|
2018-10-05 02:51:46 +01: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 13:42:50 +01:00
|
|
|
|
2017-05-31 21:42:35 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Using hardware wallets as SSH/GPG agent";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/romanz/trezor-agent;
|
2017-05-31 21:42:35 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ np ];
|
|
|
|
};
|
|
|
|
}
|