2017-05-31 22:42:35 +02:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, ed25519, ecdsa
|
2017-11-07 19:00:57 +01:00
|
|
|
, semver, keepkey, trezor, mnemonic, ledgerblue, unidecode, mock, pytest
|
2017-05-31 22:42:35 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libagent";
|
2018-07-22 12:12:33 +02:00
|
|
|
version = "0.11.3";
|
2017-05-31 22:42:35 +02:00
|
|
|
|
|
|
|
src = fetchPypi{
|
|
|
|
inherit pname version;
|
2018-07-22 12:12:33 +02:00
|
|
|
sha256 = "cb6199c3572e1223756465e758fb525e7f406a4808e9d7cfdddf089bec710047";
|
2017-05-31 22:42:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ed25519 ecdsa semver keepkey
|
|
|
|
trezor mnemonic ledgerblue
|
|
|
|
];
|
|
|
|
|
2017-11-07 19:00:57 +01:00
|
|
|
propagatedBuildInputs = [ unidecode ];
|
|
|
|
|
|
|
|
checkInputs = [ mock pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test libagent/tests
|
|
|
|
'';
|
2017-10-28 14:42:50 +02:00
|
|
|
|
2017-05-31 22:42:35 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Using hardware wallets as SSH/GPG agent";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://github.com/romanz/trezor-agent;
|
2017-05-31 22:42:35 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ np ];
|
|
|
|
};
|
|
|
|
}
|