depot/third_party/nixpkgs/pkgs/development/python-modules/libagent/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

60 lines
1 KiB
Nix

{ lib
, fetchFromGitHub
, bech32
, buildPythonPackage
, cryptography
, 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.5";
src = fetchFromGitHub {
owner = "romanz";
repo = "trezor-agent";
rev = "v${version}";
sha256 = "sha256-RISAy0efdatr9u4CWNRGnlffkC8ksw1NyRpJWKwqz+s=";
};
propagatedBuildInputs = [
unidecode
backports-shutil-which
configargparse
python-daemon
pymsgbox
ecdsa
ed25519
mnemonic
semver
pynacl
bech32
cryptography
];
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 ];
};
}