mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
bba53f2080
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
34 lines
957 B
Nix
34 lines
957 B
Nix
{ lib, fetchFromGitHub, buildPythonPackage, ed25519, ecdsa , semver, mnemonic
|
|
, unidecode, mock, pytest , backports-shutil-which, configargparse
|
|
, python-daemon, pymsgbox, pynacl }:
|
|
|
|
# XXX: when changing this package, please test the package onlykey-agent.
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libagent";
|
|
version = "0.14.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "romanz";
|
|
repo = "trezor-agent";
|
|
rev = "v${version}";
|
|
sha256 = "1ksv494xpga27ifrjyn1bkqaya5h769lqb9rx1ng0n4kvmnrqr3l";
|
|
};
|
|
|
|
propagatedBuildInputs = [ unidecode backports-shutil-which configargparse
|
|
python-daemon pymsgbox ecdsa ed25519 mnemonic semver pynacl ];
|
|
|
|
checkInputs = [ mock pytest ];
|
|
|
|
checkPhase = ''
|
|
py.test libagent/tests
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Using hardware wallets as SSH/GPG agent";
|
|
homepage = "https://github.com/romanz/trezor-agent";
|
|
license = licenses.lgpl3Only;
|
|
maintainers = with maintainers; [ np ];
|
|
};
|
|
}
|