From bf69d004da7d20a09ec0180b8839d4d9626323e4 Mon Sep 17 00:00:00 2001 From: Markus Zoppelt Date: Thu, 7 Dec 2023 19:58:20 +0100 Subject: [PATCH] add `trezor-agent` (#4336) * add `trezor-agent` * try this based on https://github.com/romanz/trezor-agent/blob/master/doc/INSTALL.md * git build dep; fix-shebangs * one more try * this seems to work --------- Co-authored-by: Jacob Heider --- .../romanz/trezor-agent/package.yml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 projects/github.com/romanz/trezor-agent/package.yml diff --git a/projects/github.com/romanz/trezor-agent/package.yml b/projects/github.com/romanz/trezor-agent/package.yml new file mode 100644 index 00000000..d71c9d7d --- /dev/null +++ b/projects/github.com/romanz/trezor-agent/package.yml @@ -0,0 +1,56 @@ +distributable: + url: https://github.com/romanz/trezor-agent/archive/refs/tags/v{{version}}.tar.gz + strip-components: 1 + +versions: + github: romanz/trezor-agent/tags + +dependencies: + python.org: ~3.12 + libusb.info: ^1 + +runtime: + env: + PYTHONPATH: '{{prefix}}/lib/python{{deps.python.org.version.marketing}}/site-packages:$PYTHONPATH' + +build: + dependencies: + git-scm.org: '*' + script: + - python -m pip install --prefix="{{prefix}}" -e . + - run: | + for AGENT in $AGENTS; do + python -m pip install --prefix="{{prefix}}" -e agents/$AGENT + done + - run: fix-shebangs.ts * + working-directory: ${{prefix}}/bin + skip: fix-patchelf # doesn't like the paths in the libs + env: + AGENTS: + - jade + - keepkey + - ledger + - onlykey + - trezor + +provides: + - bin/jade-agent + - bin/jade-gpg + - bin/jade-gpg-agent + - bin/keepkey-agent + - bin/keepkeyctl + - bin/ledger-agent + - bin/ledger-gpg + - bin/ledger-gpg-agent + - bin/onlykey-agent + - bin/onlykey-cli + - bin/onlykey-gpg + - bin/onlykey-gpg-agent + - bin/trezor-agent + - bin/trezor-gpg + - bin/trezor-gpg-agent + - bin/trezor-signify + - bin/trezorctl + +# hard to test this, but this will show the python is working +test: trezor-agent --help