nixpkgs/pkgs/development/python-modules/libagent/default.nix

34 lines
775 B
Nix
Raw Normal View History

2017-05-31 13:42:35 -07:00
{ stdenv, fetchPypi, buildPythonPackage, ed25519, ecdsa
2017-11-07 10:00:57 -08:00
, semver, keepkey, trezor, mnemonic, ledgerblue, unidecode, mock, pytest
2017-05-31 13:42:35 -07:00
}:
buildPythonPackage rec {
pname = "libagent";
2018-02-17 05:20:48 -08:00
version = "0.9.8";
2017-05-31 13:42:35 -07:00
src = fetchPypi{
inherit pname version;
2018-02-17 05:20:48 -08:00
sha256 = "7e7d62cedef9d1291b8e77abc463d50b3d685dfd953611d55a0414c12276aa78";
2017-05-31 13:42:35 -07:00
};
buildInputs = [
ed25519 ecdsa semver keepkey
trezor mnemonic ledgerblue
];
2017-11-07 10:00:57 -08:00
propagatedBuildInputs = [ unidecode ];
checkInputs = [ mock pytest ];
checkPhase = ''
py.test libagent/tests
'';
2017-05-31 13:42:35 -07:00
meta = with stdenv.lib; {
description = "Using hardware wallets as SSH/GPG agent";
homepage = https://github.com/romanz/trezor-agent;
2017-05-31 13:42:35 -07:00
license = licenses.gpl3;
maintainers = with maintainers; [ np ];
};
}