diff options
author | Marius Bakke <marius@gnu.org> | 2022-01-18 16:53:57 +0100 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2022-01-18 19:35:55 +0100 |
commit | ce58adbb3b96df2f7057fca7b233270ecbfc05c2 (patch) | |
tree | eef5f348033d8acd7539d6118cf2bfe4293e24ab /gnu/packages | |
parent | 146e931523853ecabdc66834f14193755251df4c (diff) | |
download | guix-ce58adbb3b96df2f7057fca7b233270ecbfc05c2.tar.gz guix-ce58adbb3b96df2f7057fca7b233270ecbfc05c2.zip |
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.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/libusb.scm | 16 |
1 files 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") |