From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 12 01:24:13 2019 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 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 To: guix-patches@gnu.org Subject: Updates for python-trezor-agent and python-trezor Date: Mon, 11 Feb 2019 22:23:29 -0800 Message-ID: <87wom5a5jy.fsf@ponder> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 173.255.214.101 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-python-trezor-agent-Update-to-0.13.0.patch Content-Transfer-Encoding: quoted-printable From=20fc7873d01ce9f06ab84384e9d72e4faf72f1a23f Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Thu, 7 Feb 2019 00:07:15 +0000 Subject: [PATCH 1/2] gnu: python-trezor-agent: Update to 0.13.0. * gnu/packages/finance.scm: use-module gnupg. * gnu/packages/finance.scm (python-trezor-agent): Update to 0.13.0. [propagated-inputs]: Add python-configargparse, python-daemon, python-docutils, python-mnemonic, python-pymsgbox, python-wheel. [native-inputs]: Add gnupg. [synopsis]: generalize description to hardware wallets. [phases]: Add phase to remove uneccesary python backport. =2D-- gnu/packages/finance.scm | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index e44be713f2..0e7c396421 100644 =2D-- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -45,6 +45,7 @@ #:use-module (gnu packages dns) #:use-module (gnu packages emacs) #:use-module (gnu packages dbm) + #:use-module (gnu packages gnupg) #:use-module (gnu packages graphviz) #:use-module (gnu packages groff) #:use-module (gnu packages libedit) @@ -591,7 +592,7 @@ Monero GUI client.") (define-public python-trezor-agent (package (name "python-trezor-agent") =2D (version "0.9.4") + (version "0.13.0") (source (origin (method git-fetch) @@ -600,11 +601,17 @@ Monero GUI client.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 =2D (base32 "15aaqk79d9y9nbsfznf2iscz12z5ispcj8kr8v5bc0sqqj2brs12"))= )) + (base32 "0i4igkxi8fwdlbhg6nx27lhnc9v9nmrw4j5fvpnc202n6yjlc7x7")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'remove-requires-backports-shutil-which + ;; Remove requires on backport of shutil_which, as python 3.4+ = has + ;; a built-in implementation supported in python-trezor-agent. + (lambda _ + (substitute* "setup.py" + (("'backports.shutil_which>=3D3.5.1',") "")))) (delete 'check) (add-after 'install 'check (lambda* (#:key outputs inputs #:allow-other-keys) @@ -612,15 +619,22 @@ Monero GUI client.") (add-installed-pythonpath inputs outputs) (invoke "py.test")))))) (propagated-inputs =2D `(("python-ecdsa" ,python-ecdsa) + `(("python-configargparse" ,python-configargparse) + ("python-daemon" ,python-daemon) + ("python-docutils" ,python-docutils) + ("python-ecdsa" ,python-ecdsa) ("python-ed25519" ,python-ed25519) + ("python-mnemonic" ,python-mnemonic) + ("python-pymsgbox" ,python-pymsgbox) ("python-semver" ,python-semver) =2D ("python-unidecode" ,python-unidecode))) + ("python-unidecode" ,python-unidecode) + ("python-wheel" ,python-wheel))) (native-inputs =2D `(("python-mock" ,python-mock) + `(("gnupg" ,gnupg) + ("python-mock" ,python-mock) ("python-pytest" ,python-pytest))) (home-page "https://github.com/romanz/trezor-agent") =2D (synopsis "TREZOR SSH and GPG host support") + (synopsis "Use hardware wallets as SSH and GPG agent") (description "@code{libagent} is a library that allows using TREZOR, Keepkey and Ledger Nano as a hardware SSH/GPG agent.") =2D-=20 2.20.1 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0002-gnu-trezor-agent-Update-0.10.0.patch Content-Transfer-Encoding: quoted-printable From=2049c7cfc32f7263c78bf2b555dfad8cfcaf6db8eb 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 she= ll wrapper. [native-inputs]: Add python-hidapi. [home-page]: Use https url. =2D-- 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 =2D-- 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") =2D (version "0.9.0") + (version "0.10.0") (source (origin (method url-fetch) (uri (pypi-uri "trezor_agent" version)) (sha256 (base32 =2D "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))) =2D (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.") =2D-=20 2.20.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCXGJmYwAKCRDcUY/If5cW qpinAP4zYqH1W69mWR6o6XbTL71cs8v5YjEod9Kf3S/0iQOcCwEAmOGoG0A1XLG2 NwmuAPj3suPI5yRp76bK5ow66Hnk7wc= =Tsg4 -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 12 18:29:37 2019 Received: (at 34452-done) by debbugs.gnu.org; 12 Feb 2019 23:29:37 +0000 Received: from localhost ([127.0.0.1]:45478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gthUf-0001iD-Gm for submit@debbugs.gnu.org; Tue, 12 Feb 2019 18:29:37 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:51976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gthUe-0001i2-AK for 34452-done@debbugs.gnu.org; Tue, 12 Feb 2019 18:29:36 -0500 Received: from localhost (178.112.162.195.wireless.dyn.drei.com [178.112.162.195]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 2A4643365A73; Wed, 13 Feb 2019 00:29:33 +0100 (CET) Date: Wed, 13 Feb 2019 00:29:31 +0100 From: Danny Milosavljevic To: Vagrant Cascadian Subject: Re: [bug#34452] Updates for python-trezor-agent and python-trezor Message-ID: <20190213002931.3bd7506c@scratchpost.org> In-Reply-To: <87wom5a5jy.fsf@ponder> References: <87wom5a5jy.fsf@ponder> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/3UoC8vjV+XwPGAGi1hj7ERr"; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 34452-done Cc: 34452-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --Sig_/3UoC8vjV+XwPGAGi1hj7ERr Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Vagrant, On Mon, 11 Feb 2019 22:23:29 -0800 Vagrant Cascadian wrote: >The solution for the bug could certainly be implemented more elegantly >by someone who knows guix packaging better, but it worked for me! Long term there will be a proper fix for the problem of the same Python file being able to be both a library and an executable program: On core-updates, there's a wrap-script function which will do the right thing in both cases. After master is merged to core-updates, we should use it for trezor-agent. For now, the workaround is fine. Applied to master. Thanks! --Sig_/3UoC8vjV+XwPGAGi1hj7ERr Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlxjVtsACgkQ5xo1VCww uqVeuggAiye1/9unTDrUUhblW/FjjvUrLMaWVa0pwiSVbOWEXXBdZhKZd1Va1c/k D0SWByzSkuToq45Vv3tsKmREre4uXKETifc+yFWOC7OUTO7A91/ALVUUDMpgQHYG uiX+6DcoeSqspYnK1ke2wRDypfskkdu4/KOHy0Q5J978FWVuMEYe002xYBoQ4XQX 2tK4ZHhAZiceQy95wWB3YQsafADHizBVa2UdyS0ZVNfef4wMUEty6+E04SgXEliV 7fev8alYJnCjSfsJ8HjVqYzbYWqIDpVGoSPe3To+mK145Qar7zjA7h4QdAPJEWIO UVrIpvnqrPOKMrVEjw6SL0LQH6dUMw== =cyOt -----END PGP SIGNATURE----- --Sig_/3UoC8vjV+XwPGAGi1hj7ERr-- From unknown Tue Aug 19 02:52:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 13 Mar 2019 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator