emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#29850: closed ([PATCH] gnu: Add python-hidapi.)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#29850: closed ([PATCH] gnu: Add python-hidapi.)
Date: Thu, 28 Dec 2017 07:42:02 +0000

Your message dated Thu, 28 Dec 2017 08:41:00 +0100
with message-id <address@hidden>
and subject line Re: [bug#29850] [PATCH v3] gnu: Add python-hidapi.
has caused the debbugs.gnu.org bug report #29850,
regarding [PATCH] gnu: Add python-hidapi.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
29850: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=29850
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] gnu: Add python-hidapi. Date: Tue, 26 Dec 2017 00:03:19 +0100
* gnu/packages/libusb.scm (python-hidapi, python2-hidapi): New variables.
---
 gnu/packages/libusb.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm
index 31c7dfa44..404ae8659 100644
--- a/gnu/packages/libusb.scm
+++ b/gnu/packages/libusb.scm
@@ -352,3 +352,40 @@ HID-Class devices.")
     (license (list gpl3
                    bsd-3
                    (non-copyleft "file://LICENSE-orig.txt")))))
+
+(define-public python-hidapi
+  (package
+    (name "python-hidapi")
+    (version "0.7.99.post21")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "hidapi" version))
+        (sha256
+          (base32
+            "15ws59zdrxahf3k7z5rcrwc4jgv1307anif8ixm2cyb9ask1mgp0"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-configuration
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "setup.py"
+               (("'/usr/include/libusb-1.0'")
+                (string-append "'" (assoc-ref inputs "libusb")
+                               "/include/libusb-1.0'")))
+             #t)))))
+    (inputs
+     `(("libusb" ,libusb)
+       ("eudev" ,eudev)))
+    (native-inputs
+     `(("python-cython" ,python-cython)))
+    (home-page "https://github.com/trezor/cython-hidapi";)
+    (synopsis "Cython interface to hidapi")
+    (description "A Cython interface to the hidapi.")
+    ;; The library can be used under either of these licenses.
+    ;; TODO cython-hidapi DIY license.
+    (license (list gpl3 bsd-3))))
+
+(define-public python2-hidapi
+  (package-with-python2 python-hidapi))



--- End Message ---
--- Begin Message --- Subject: Re: [bug#29850] [PATCH v3] gnu: Add python-hidapi. Date: Thu, 28 Dec 2017 08:41:00 +0100
Hi Marius,

thanks for the review!  Fixed these and pushed that patch to master.

> It would be good to extend python-build-system to support this however.
#:setuppy-flags? :)

I agree.  But I think Hartmut said that the arguments aren't necessarily the 
same for build, install and check.  Let's see...


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]