guix-commits
[Top][All Lists]
Advanced

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

08/21: gnu: python-libusb1: Update to 2.0.1.


From: guix-commits
Subject: 08/21: gnu: python-libusb1: Update to 2.0.1.
Date: Tue, 18 Jan 2022 13:38:48 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit ce58adbb3b96df2f7057fca7b233270ecbfc05c2
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Jan 18 16:53:57 2022 +0100

    gnu: python-libusb1: Update to 2.0.1.
    
    * gnu/packages/libusb.scm (python-libusb1): Update to 2.0.1.
    [arguments]: Remove trailing #t's and adjust file name.
---
 gnu/packages/libusb.scm | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm
index db7ae86cc7..01771dffca 100644
--- a/gnu/packages/libusb.scm
+++ b/gnu/packages/libusb.scm
@@ -223,17 +223,17 @@ implementing @code{javax.usb} (JSR-80).")
 (define-public python-libusb1
   (package
     (name "python-libusb1")
-    (version "1.9.3")
+    (version "2.0.1")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "libusb1" version))
        (sha256
         (base32
-         "0j8p7jb7sibiiib18vyv3w5rrk0f4d2dl99bs18nwkq6pqvwxrk0"))))
+         "0ikc7z7mdyr8pm0mk3ibab1hqrq4cpi9frmc3p94hsmbyzn85fnk"))))
     (build-system python-build-system)
     (arguments
-     `(#:modules ((srfi srfi-1)
+     '(#:modules ((srfi srfi-1)
                   (guix build utils)
                   (guix build python-build-system))
        #:phases
@@ -242,19 +242,17 @@ implementing @code{javax.usb} (JSR-80).")
            (lambda* (#:key out #:allow-other-keys)
              ;; Was relicensed to LGPL 2.1+, but old COPYING file still left
              ;; in source. Remove it so it does not get installed.
-             (delete-file "COPYING")
-             #t))
+             (delete-file "COPYING")))
          (add-after 'unpack 'fix-libusb-reference
            (lambda* (#:key inputs #:allow-other-keys)
-             (substitute* "usb1/libusb1.py"
-               (("libusb_path = ctypes.util.find_library\\(base_name\\)")
+             (substitute* "usb1/_libusb1.py"
+               (("libusb_path = ctypes\\.util\\.find_library\\(base_name\\)")
                 (string-append
                  "libusb_path = \""
                  (find (negate symbolic-link?)
                        (find-files (assoc-ref inputs "libusb")
                                    "^libusb.*\\.so\\..*"))
-                 "\"")))
-             #t)))))
+                 "\""))))))))
     (propagated-inputs (list libusb))
     (home-page "https://github.com/vpelletier/python-libusb1";)
     (synopsis "Pure-python wrapper for libusb-1.0")



reply via email to

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