From patchwork Tue Feb 12 06:23:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vagrant Cascadian X-Patchwork-Id: 1032 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 03A9816BA2; Tue, 12 Feb 2019 06:25:11 +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 785C516B76 for ; Tue, 12 Feb 2019 06:25:10 +0000 (GMT) Received: from localhost ([127.0.0.1]:34082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtRVF-000225-US for patchwork@mira.cbaines.net; Tue, 12 Feb 2019 01:25:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtRVB-00021v-1c for guix-patches@gnu.org; Tue, 12 Feb 2019 01:25:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtRV9-0006hf-7T for guix-patches@gnu.org; Tue, 12 Feb 2019 01:25:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45049) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gtRV8-0006hK-JX for guix-patches@gnu.org; Tue, 12 Feb 2019 01:25:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gtRV8-0005LX-Ct for guix-patches@gnu.org; Tue, 12 Feb 2019 01:25:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34452] Updates for python-trezor-agent and python-trezor Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 12 Feb 2019 06:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34452 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 34452@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154995265320485 (code B ref -1); Tue, 12 Feb 2019 06:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Feb 2019 06:24:13 +0000 Received: from localhost ([127.0.0.1]:44330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gtRUL-0005KL-0w for submit@debbugs.gnu.org; Tue, 12 Feb 2019 01:24:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53703) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gtRUJ-0005K8-QR for submit@debbugs.gnu.org; Tue, 12 Feb 2019 01:24:12 -0500 Received: from lists.gnu.org ([209.51.188.17]:34021) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gtRUE-00060a-LS for submit@debbugs.gnu.org; Tue, 12 Feb 2019 01:24:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtRUC-0001uz-UB for guix-patches@gnu.org; Tue, 12 Feb 2019 01:24:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtRUB-0005wL-80 for guix-patches@gnu.org; Tue, 12 Feb 2019 01:24:04 -0500 Received: from cascadia.aikidev.net ([173.255.214.101]:56208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtRUA-0005rr-IS for guix-patches@gnu.org; Tue, 12 Feb 2019 01:24:03 -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 3F9C71AA27 for ; Mon, 11 Feb 2019 22:23:58 -0800 (PST) From: Vagrant Cascadian Date: Mon, 11 Feb 2019 22:23:29 -0800 Message-ID: <87wom5a5jy.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 The attached patch series update python-trezor-agent and python-trezor, and fixes a bug that made python-trezor unusable: https://bugs.gnu.org/34377 The solution for the bug could certainly be implemented more elegantly by someone who knows guix packaging better, but it worked for me! Thanks! live well, vagrant From 49c7cfc32f7263c78bf2b555dfad8cfcaf6db8eb 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. [home-page]: Use https url. --- gnu/packages/finance.scm | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 0e7c396421..cddccbfd94 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -803,19 +803,32 @@ 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))) - (home-page "http://github.com/romanz/trezor-agent") + (native-inputs + `(("python-hidapi" ,python-hidapi))) + (home-page "https://github.com/romanz/trezor-agent") (synopsis "Using Trezor as hardware SSH/GPG agent") (description "This package allows using Trezor as a hardware SSH/GPG agent.") -- 2.20.1