8 bech32 = with python3Packages; buildPythonPackage rec {
13 inherit pname version;
14 sha256 = "sha256-fW24IUYDvXhx/PpsCCbvaLhbCr2Q+iHChanF4h0r2Jk=";
18 # onlykey requires a patched version of libagent
19 lib-agent = with python3Packages; libagent.overridePythonAttrs (oa: rec{
24 sha256 = "sha256-IrJizIHDIPHo4tVduUat7u31zHo3Nt8gcMOyUUqkNu0=";
26 propagatedBuildInputs = oa.propagatedBuildInputs or [ ] ++ [
36 # turn off testing because I can't get it to work
38 pythonImportsCheck = [ "libagent" ];
41 description = "Using OnlyKey as hardware SSH and GPG agent";
42 homepage = "https://github.com/trustcrypto/onlykey-agent/tree/ledger";
43 maintainers = with lib.maintainers; [ kalbasit ];
47 python3Packages.buildPythonApplication rec {
48 pname = "onlykey-agent";
52 inherit pname version;
53 hash = "sha256-SbGb7CjcD7cFPvASZtip56B4uxRiFKZBvbsf6sb8fds=";
56 propagatedBuildInputs = with python3Packages; [ lib-agent onlykey-cli setuptools ];
58 # move the python library into the sitePackages.
60 mkdir $out/${python3Packages.python.sitePackages}/onlykey_agent
61 mv $out/bin/onlykey_agent.py $out/${python3Packages.python.sitePackages}/onlykey_agent/__init__.py
62 chmod a-x $out/${python3Packages.python.sitePackages}/onlykey_agent/__init__.py
67 pythonImportsCheck = [ "onlykey_agent" ];
70 description = "Middleware that lets you use OnlyKey as a hardware SSH/GPG device";
71 homepage = "https://github.com/trustcrypto/onlykey-agent";
72 license = licenses.lgpl3Only;
73 maintainers = with maintainers; [ kalbasit ];