2017-05-31 21:42:35 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, ed25519, ecdsa
|
2017-11-07 18:00:57 +00:00
|
|
|
, semver, keepkey, trezor, mnemonic, ledgerblue, unidecode, mock, pytest
|
2017-05-31 21:42:35 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "libagent";
|
2018-01-20 10:58:40 +00:00
|
|
|
version = "0.9.7";
|
2017-05-31 21:42:35 +01:00
|
|
|
|
|
|
|
src = fetchPypi{
|
|
|
|
inherit pname version;
|
2018-01-20 10:58:40 +00:00
|
|
|
sha256 = "3ae14dc14859f7b4b92583ab0d40884ac07f26dbe00c7b747df2d50f4b1af098";
|
2017-05-31 21:42:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ed25519 ecdsa semver keepkey
|
|
|
|
trezor mnemonic ledgerblue
|
|
|
|
];
|
|
|
|
|
2017-11-07 18:00:57 +00:00
|
|
|
propagatedBuildInputs = [ unidecode ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|