From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:58006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqsIE-0003Qe-Q9 for guix-patches@gnu.org; Mon, 04 Feb 2019 23:25:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gqsIB-00041A-5t for guix-patches@gnu.org; Mon, 04 Feb 2019 23:25:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60681) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gqsIA-0003zm-Ip for guix-patches@gnu.org; Mon, 04 Feb 2019 23:25:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gqsIA-0004Po-9s for guix-patches@gnu.org; Mon, 04 Feb 2019 23:25:02 -0500 Subject: [bug#34326] Update python-trezor to 0.11.1, add python-typing-extensions and python-construct Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:57742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqsH3-0003KS-Mi for guix-patches@gnu.org; Mon, 04 Feb 2019 23:23:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gqsH2-0003TH-6m for guix-patches@gnu.org; Mon, 04 Feb 2019 23:23:53 -0500 Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]:60082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqsH1-0003O1-Or for guix-patches@gnu.org; Mon, 04 Feb 2019 23:23:52 -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 13E1A1AAC0 for ; Mon, 4 Feb 2019 20:23:42 -0800 (PST) From: Vagrant Cascadian Date: Mon, 04 Feb 2019 20:23:36 -0800 Message-ID: <87ef8m983b.fsf@ponder> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 34326@debbugs.gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain The attached patch series updates python-trezor to 0.11.1, which required adding the new inputs python-typing-extensions and python-construct. live well, vagrant --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Add-python-typing-extensions.patch Content-Transfer-Encoding: quoted-printable From=20883cdc94648e94fb2d2ee0c1bb98dcd586d2fe3b Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Tue, 5 Feb 2019 04:14:23 +0000 Subject: [PATCH 1/3] gnu: Add python-typing-extensions. * gnu/packages/python-xyz.scm (python-typing-extensions): New variable. =2D-- gnu/packages/python-xyz.scm | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index ef8565d7bf..6a5e54d382 100644 =2D-- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -13424,6 +13424,44 @@ and other tools.") (define-public python2-typing (package-with-python2 python-typing)) =20 +(define-public python-typing-extensions + (package + (name "python-typing-extensions") + (version "3.7.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "typing_extensions" version)) + (sha256 + (base32 + "0wfsv71pvkyf2na938l579jh0v3kzl6g744ijgnahcwd4d9x0b7v")))) + (build-system python-build-system) + (home-page + "https://github.com/python/typing/blob/master/typing_extensions/READM= E.rst") + (synopsis + "Experimental type hints for Python") + (description + "The typing_extensions module contains additional @code{typing} hints= not +yet present in the of the @code{typing} standard library. +Included are implementations of: +@enumerate +@item ClassVar +@item ContextManager +@item Counter +@item DefaultDict +@item Deque +@item NewType +@item NoReturn +@item overload +@item Protocol +@item runtime +@item Text +@item Type +@item TYPE_CHECKING +@item AsyncGenerator +@end enumerate\n") + (license license:psfl))) + (define-public bpython (package (name "bpython") =2D-=20 2.20.1 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0002-gnu-Add-python-construct.patch Content-Transfer-Encoding: quoted-printable From=20fb1e1089e5f5d094d30b25749cb47cfb39c9c45f Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Tue, 5 Feb 2019 04:14:23 +0000 Subject: [PATCH 2/3] gnu: Add python-construct. * gnu/packages/python-xyz.scm (python-construct): New variable. =2D-- gnu/packages/python-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 6a5e54d382..d72aa60837 100644 =2D-- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -137,6 +137,7 @@ #:use-module (gnu packages xdisorg) #:use-module (gnu packages tcl) #:use-module (gnu packages bdw-gc) + #:use-module (gnu packages serialization) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) @@ -14811,3 +14812,36 @@ in doctests.") (description "Simple decorator to set attributes of target function or class in a @acronym{DRY, Don't Repeat Yourself} way.") (license license:expat))) + +(define-public python-construct + (package + (name "python-construct") + (version "2.9.45") + (source + (origin + (method url-fetch) + (uri (pypi-uri "construct" version)) + (sha256 + (base32 + "130iy05awzigm2xah2yvlmb08mac5bi4gzr5m3g7k1krs3ps0w92")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; No tests defined. + (delete 'check)))) + (propagated-inputs + `(("python-extras" ,python-extras) + ("python-arrow" ,python-arrow) + ("python-numpy" ,python-numpy) + ("python-ruamel.yaml" ,python-ruamel.yaml))) + (home-page "http://construct.readthedocs.io") + (synopsis + "Declarative and symmetrical parser and builder for binary data") + (description + "Construct provides both simple, atomic constructs (such as integers = of +various sizes), as well as composite ones which allow you form hierarchical +and sequential structures of increasing complexity. Construct features bi= t and +byte granularity, easy debugging and testing, an easy-to-extend subclass +system, and lots of primitive constructs to make your work easier.") + (license license:expat))) =2D-=20 2.20.1 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0003-gnu-python-trezor-Update-to-0.11.1.patch Content-Transfer-Encoding: quoted-printable From=20fb743618ec80b0b73b951ebc27cf8b0207be4d8d Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Tue, 5 Feb 2019 04:14:23 +0000 Subject: [PATCH 3/3] gnu: python-trezor: Update to 0.11.1. * gnu/packages/finance.scm (python-trezor): Update to 0.11.1. [arguments]: Remove obsolete slow_cosi test. Delete test_tx_api test, which requires network access. [propagated-inputs]: Add python-construct and python-typing-extensions, Remove python-hidapi, python-protobuf and python-typing. [native-inputs]: Remove python-mock, Add protobuf, python-black, python-protobuf and python-isort. =2D-- gnu/packages/finance.scm | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 5ca81f3d91..7d17188dab 100644 =2D-- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -679,14 +679,14 @@ Ledger Blue/Nano S.") (define-public python-trezor (package (name "python-trezor") =2D (version "0.10.2") + (version "0.11.1") (source (origin (method url-fetch) (uri (pypi-uri "trezor" version)) (sha256 (base32 =2D "138k6zsqqpb46k3rcpyslm9q7yq5i6k4myvr9n425jnkadf4vfjd")))) + "064yds8f4px0c6grkkanpdjx022g4q87ihzhkmdv9qanv0hz6hv0")))) (build-system python-build-system) (arguments `(#:phases @@ -694,21 +694,23 @@ Ledger Blue/Nano S.") ;; Default tests run device-specific tests which fail, only run = specific tests. (replace 'check (lambda* (#:key inputs outputs #:allow-other-keys) =2D (invoke "python" "-m" "pytest" "--pyarg" "trezorlib.tests.= unit_tests") =2D (invoke "python" "-m" "pytest" "-m" "slow_cosi" "--pyarg" = "trezorlib.tests.unit_tests") =2D ))))) + ;; Delete tests that require network access. + (delete-file "trezorlib/tests/unit_tests/test_tx_api.py") + (invoke "python" "-m" "pytest" "--pyarg" "trezorlib.tests.un= it_tests")))))) (propagated-inputs `(("python-click" ,python-click) + ("python-construct" ,python-construct) ("python-ecdsa" ,python-ecdsa) =2D ("python-hidapi" ,python-hidapi) ("python-libusb1" ,python-libusb1) ("python-mnemonic" ,python-mnemonic) =2D ("python-protobuf" ,python-protobuf) ("python-pyblake2" ,python-pyblake2) ("python-requests" ,python-requests) =2D ("python-typing" ,python-typing))) + ("python-typing-extensions" ,python-typing-extensions))) (native-inputs =2D `(("python-mock" ,python-mock) ; Tests + `(("protobuf" ,protobuf) ; Tests + ("python-black" ,python-black) ; Tests + ("python-protobuf" ,python-protobuf) ; Tests + ("python-isort" ,python-isort) ; Tests ("python-pyqt" ,python-pyqt) ; Tests ("python-pytest" ,python-pytest))) ; Tests (home-page "https://github.com/trezor/python-trezor") =2D-=20 2.20.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCXFkPyQAKCRDcUY/If5cW qnuVAP9YXREH/B99B8doD+eWgAlCxWyLWS+wY3RLbDx14NOrtgEA69KQizjrAulY 68TgswNJjPA9qk0olLIHA7o/IewDrwY= =ySu5 -----END PGP SIGNATURE----- --==-=-=--