My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/libagent/default.nix

33 lines
957 B

{ 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 ];
};
}