From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vagrant Cascadian Subject: bug#34377: (ledger|trezor|keepkey)-agent execute shell code with python interpreter Date: Thu, 07 Feb 2019 19:28:00 -0800 Message-ID: <87k1ib6jsv.fsf@ponder> References: <87mun76p1y.fsf@ponder> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:49030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grwqd-0003l2-Gc for bug-guix@gnu.org; Thu, 07 Feb 2019 22:29:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grwqc-0003o5-JQ for bug-guix@gnu.org; Thu, 07 Feb 2019 22:29:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39474) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1grwqc-0003nz-G1 for bug-guix@gnu.org; Thu, 07 Feb 2019 22:29:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1grwqc-0005gE-8j for bug-guix@gnu.org; Thu, 07 Feb 2019 22:29:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 34377@debbugs.gnu.org --=-=-= Content-Type: text/plain Quick fix/workaround is the following patch, simply overwriting the wrapped trezor_agent.py with the real thing. live well, vagrant commit ef39a4dc42dcd2daaa7a626c923f1115f8540091 Author: Vagrant Cascadian Date: Fri Feb 8 03:23:14 2019 +0000 trezor-agent: Overwrite trezor_agent.py wrapper with real thing. diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 035f6f5965..88b365dfb7 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -805,6 +805,17 @@ Then set the environment variable GNUPGHOME to (sha256 (base32 "144657c7bn0a667dq5fv5r6j7iilxf3h9agj29v1m2qpq40g0az8")))) + (arguments + ;; Tests fail with "AttributeError: module 'attr' has no attribute 's'". + `(#:phases + (modify-phases %standard-phases + (add-after 'wrap 'fixup-agent-py + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + ;; overwrite the wrapper with the real thing. + (install-file "./trezor_agent.py" + (string-append out "/bin/")) + #t)))))) (build-system python-build-system) (inputs `(("python-trezor" ,python-trezor) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCXFz3QQAKCRDcUY/If5cW qv5fAQCUKe278zg/hb93RcoGCTd21fXhOu+3uCJQUq2gFpUXNgD9Fu3mGhdbZn/L WjVa9tq3m1Np65zr4uCFWcVhj0ObaAk= =OELS -----END PGP SIGNATURE----- --=-=-=--