From patchwork Mon Feb 11 05:48:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vagrant Cascadian X-Patchwork-Id: 1017 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C66AC16C01; Mon, 11 Feb 2019 05:49:13 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 61E3D16BFF for ; Mon, 11 Feb 2019 05:49:13 +0000 (GMT) Received: from localhost ([127.0.0.1]:44870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gt4Su-0001el-La for patchwork@mira.cbaines.net; Mon, 11 Feb 2019 00:49:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gt4Sm-0001eZ-BN for guix-patches@gnu.org; Mon, 11 Feb 2019 00:49:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gt4Sl-0001Pt-2U for guix-patches@gnu.org; Mon, 11 Feb 2019 00:49:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43781) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gt4Sk-0001Pk-V5 for guix-patches@gnu.org; Mon, 11 Feb 2019 00:49:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gt4Sk-0005If-Lt for guix-patches@gnu.org; Mon, 11 Feb 2019 00:49:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34424] Update python-trezor-agent and trezor-agent Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 11 Feb 2019 05:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34424 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 34424@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154986414020360 (code B ref -1); Mon, 11 Feb 2019 05:49:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Feb 2019 05:49:00 +0000 Received: from localhost ([127.0.0.1]:43062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gt4Sh-0005IK-MB for submit@debbugs.gnu.org; Mon, 11 Feb 2019 00:49:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34911) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gt4Sf-0005I8-RB for submit@debbugs.gnu.org; Mon, 11 Feb 2019 00:48:58 -0500 Received: from lists.gnu.org ([209.51.188.17]:45806) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gt4Sa-0001J8-Ld for submit@debbugs.gnu.org; Mon, 11 Feb 2019 00:48:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gt4SZ-0001Tm-Ck for guix-patches@gnu.org; Mon, 11 Feb 2019 00:48:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gt4SY-0001Hy-Bx for guix-patches@gnu.org; Mon, 11 Feb 2019 00:48:51 -0500 Received: from cascadia.aikidev.net ([173.255.214.101]:54718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gt4SY-0001GJ-1N for guix-patches@gnu.org; Mon, 11 Feb 2019 00:48:50 -0500 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100e]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id DA78D1AA27 for ; Sun, 10 Feb 2019 21:48:44 -0800 (PST) From: Vagrant Cascadian Date: Sun, 10 Feb 2019 21:48:15 -0800 Message-ID: <87h8da510g.fsf@ponder> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches This patch series updates python-trezor-agent (0.13.0) and trezor-agent (0.10.0). It fixes (at least for trezor): #34377: (ledger|trezor|keepkey)-agent execute shell code with python interpreter It depends on a few unmerged patches: #34365: gnu: Add python-daemon. #34396: gnu: Add python-pymsgbox. #34398: gnu: Add python-backports-shutil-which. live well, vagrant From cd804338e1f1bf9b16ec08ced760d4d08818f8f4 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Thu, 7 Feb 2019 00:07:49 +0000 Subject: [PATCH 2/2] gnu: trezor-agent: Update 0.10.0. Fixes . * gnu/packages/finance.scm (trezor-agent): Update to 0.10.0. [phases] Add fixup-agent-py phase to install trezor_agent.py without shell wrapper. [native-inputs] Add python-hidapi. --- gnu/packages/finance.scm | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 6978f0c807..59b5a85fb2 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -799,18 +799,31 @@ Then set the environment variable GNUPGHOME to (define-public trezor-agent (package (name "trezor-agent") - (version "0.9.0") + (version "0.10.0") (source (origin (method url-fetch) (uri (pypi-uri "trezor_agent" version)) (sha256 (base32 - "1i5cdamlf3c0ym600pjklij74p8ifj9cv7xrpnrfl1b8nkadswbz")))) + "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) ("python-trezor-agent" ,python-trezor-agent))) + (native-inputs + `(("python-hidapi" ,python-hidapi))) (home-page "http://github.com/romanz/trezor-agent") (synopsis "Using Trezor as hardware SSH/GPG agent") (description "This package allows using Trezor as a hardware SSH/GPG -- 2.20.1