From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXBFv-0006On-Qs for guix-patches@gnu.org; Sun, 24 Jun 2018 16:05:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fXBFu-0005sD-NM for guix-patches@gnu.org; Sun, 24 Jun 2018 16:05:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54448) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fXBFu-0005s3-IX for guix-patches@gnu.org; Sun, 24 Jun 2018 16:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fXBFu-0006JW-BH for guix-patches@gnu.org; Sun, 24 Jun 2018 16:05:02 -0400 Subject: [bug#31957] [PATCH] gnu: Add python-libusb1. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXBFL-0006HQ-SH for guix-patches@gnu.org; Sun, 24 Jun 2018 16:04:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fXBFK-0005KJ-SF for guix-patches@gnu.org; Sun, 24 Jun 2018 16:04:27 -0400 Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]:34999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXBFK-0005JW-Jd for guix-patches@gnu.org; Sun, 24 Jun 2018 16:04:26 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 066C11B585 for ; Sun, 24 Jun 2018 13:04:24 -0700 (PDT) From: Vagrant Cascadian Date: Sun, 24 Jun 2018 13:04:06 -0700 Message-ID: <87r2kwne89.fsf@aikidev.net> 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: 31957@debbugs.gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Add new package definition for python-libusb1, needed to upgrade python-trezor to newer versions. live well, vagrant --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Add-python-libusb1.patch Content-Transfer-Encoding: quoted-printable From=20282280cbaba47389f7a9c3e14eb8fe7834adbd39 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Sun, 24 Jun 2018 19:20:47 +0000 Subject: [PATCH] gnu: Add python-libusb1. * gnu/packages/libusb.scm (python-libusb1): New variable. =2D-- gnu/packages/libusb.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm index 62c936c19..9fa2d816a 100644 =2D-- a/gnu/packages/libusb.scm +++ b/gnu/packages/libusb.scm @@ -214,6 +214,44 @@ with usb4java.") implementing @code{javax.usb} (JSR-80).") (license expat))) =20 +(define-public python-libusb1 + (package + (name "python-libusb1") + (version "1.6.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "libusb1" version)) + (sha256 + (base32 + "03b7xrz8vqg8w0za5r503jhcmbd1ls5610jcja1rqz833nf0v4wc")))) + (build-system python-build-system) + (arguments + `(#:modules ((srfi srfi-1) + (srfi srfi-26) + (guix build utils) + (guix build python-build-system)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-libusb-reference + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "usb1/libusb1.py" + (("libusb_path =3D ctypes.util.find_library\\(base_name\\)") + (string-append + "libusb_path =3D \"" + (find (negate symbolic-link?) + (find-files (assoc-ref inputs "libusb") + "^libusb.*\\.so\\..*")) + "\""))) + #t))))) + (inputs `(("libusb" ,libusb))) + (home-page + "http://github.com/vpelletier/python-libusb1") + (synopsis "Pure-python wrapper for libusb-1.0") + (description + "Pure-python wrapper for libusb-1.0") + (license lgpl2.1+))) + (define-public python-pyusb (package (name "python-pyusb") =2D-=20 2.11.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcDardHbDotegGFCHt4uC1IFLkbYFAlsv+TYACgkQt4uC1IFL kbafaw//U9R0zZ1ermnDIVcoTSNREU7UOCDNFKnVqxbTOErmgaj64wZ4PuANORWo +LGuH8QRQ/r5tysFiJeLEKoIRZ0TFnewEaTg/XOOb0nZ9IUI976/cjebT5BCs7da UWYIE91hadu22f3GJiDiTQ3Inh2NTTEZj7zSUwfd+qDL2QWnAhKfeZL+9v77t+8m yLHWwkG1i8xVnFQ4PwiQKaRnUs/Na43lJ8FCzlZledi0pZ3a7QYpp4aCd8msvvtM rB5ioB7ljekA9mZmafcDby+Rs5WLYho6kseATxkcrZLwQ30/PY4730qWTm307Ia8 GbdckGNH7cDsQne6XAQQLJVSIFiaPK6BjJsvjZ1sWuhzkaxb3Ik6Glm1iiE8nokY PmSoca/lXUeMvzAb3KiHVkzdOu2TC2d6Gh9Mf0TWnHeyIRhA5Xys7Qn36azmyq7D cyRJK1f1lOX1WX9VrslGbIi8IWAE473/p89iDZ8fA2Pv7pFL9tsC9UIF2cHdN05j EGuK52/EieClEadQ7D8ldTtqqpmi7ZixjxEKwl2EsbbWw0tM0eWv2rSJvPOpHD/4 ycQlt8EgWW2lSKCBUmXCITSW/gmi3ePMxsXbg80tjsle9lRVR6Tt9eTh9FDgK7UT MOgsQtUUe9r3cGxSB2eHiKucK342FrxRVw/iE+7K1jfIHhlIYJ0= =jYlL -----END PGP SIGNATURE----- --==-=-=--