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

32 lines
874 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, buildPythonPackage, ed25519, ecdsa , semver, mnemonic,
unidecode, mock, pytest , backports-shutil-which, ConfigArgParse,
python-daemon, pymsgbox }:
2017-05-31 21:42:35 +01:00
buildPythonPackage rec {
pname = "libagent";
2020-06-06 07:47:16 +01:00
version = "0.14.1";
2017-05-31 21:42:35 +01:00
src = fetchFromGitHub {
owner = "romanz";
repo = "trezor-agent";
rev = "v${version}";
sha256 = "16y1y9ahcv3wj7f0v4mfiwzkmn2hz1iv7y13cgr57sxa3ymyqx6c";
2017-05-31 21:42:35 +01:00
};
propagatedBuildInputs = [ unidecode backports-shutil-which ConfigArgParse
python-daemon pymsgbox ecdsa ed25519 mnemonic semver ];
2017-11-07 18:00:57 +00:00
checkInputs = [ mock pytest ];
checkPhase = ''
py.test libagent/tests
'';
2017-05-31 21:42:35 +01:00
meta = with stdenv.lib; {
description = "Using hardware wallets as SSH/GPG agent";
homepage = "https://github.com/romanz/trezor-agent";
2017-05-31 21:42:35 +01:00
license = licenses.gpl3;
maintainers = with maintainers; [ np ];
};
}