mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
32 lines
874 B
Nix
32 lines
874 B
Nix
{ stdenv, fetchFromGitHub, buildPythonPackage, ed25519, ecdsa , semver, mnemonic,
|
|
unidecode, mock, pytest , backports-shutil-which, ConfigArgParse,
|
|
python-daemon, pymsgbox }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libagent";
|
|
version = "0.14.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "romanz";
|
|
repo = "trezor-agent";
|
|
rev = "v${version}";
|
|
sha256 = "16y1y9ahcv3wj7f0v4mfiwzkmn2hz1iv7y13cgr57sxa3ymyqx6c";
|
|
};
|
|
|
|
propagatedBuildInputs = [ unidecode backports-shutil-which ConfigArgParse
|
|
python-daemon pymsgbox ecdsa ed25519 mnemonic semver ];
|
|
|
|
checkInputs = [ mock pytest ];
|
|
|
|
checkPhase = ''
|
|
py.test libagent/tests
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Using hardware wallets as SSH/GPG agent";
|
|
homepage = "https://github.com/romanz/trezor-agent";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ np ];
|
|
};
|
|
}
|