1{ lib 2, fetchFromGitHub 3, bech32 4, buildPythonPackage 5, cryptography 6, ed25519 7, ecdsa 8, semver 9, mnemonic 10, unidecode 11, mock 12, pytest 13, backports-shutil-which 14, configargparse 15, python-daemon 16, pymsgbox 17, pynacl 18}: 19 20# XXX: when changing this package, please test the package onlykey-agent. 21 22buildPythonPackage rec { 23 pname = "libagent"; 24 version = "0.14.5"; 25 26 src = fetchFromGitHub { 27 owner = "romanz"; 28 repo = "trezor-agent"; 29 rev = "v${version}"; 30 sha256 = "sha256-RISAy0efdatr9u4CWNRGnlffkC8ksw1NyRpJWKwqz+s="; 31 }; 32 33 propagatedBuildInputs = [ 34 unidecode 35 backports-shutil-which 36 configargparse 37 python-daemon 38 pymsgbox 39 ecdsa 40 ed25519 41 mnemonic 42 semver 43 pynacl 44 bech32 45 cryptography 46 ]; 47 48 checkInputs = [ mock pytest ]; 49 50 checkPhase = '' 51 py.test libagent/tests 52 ''; 53 54 meta = with lib; { 55 description = "Using hardware wallets as SSH/GPG agent"; 56 homepage = "https://github.com/romanz/trezor-agent"; 57 license = licenses.lgpl3Only; 58 maintainers = with maintainers; [ np ]; 59 }; 60}