3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

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.
This commit is contained in:
Marius Bakke 2022-01-18 16:53:57 +01:00
parent 146e931523
commit ce58adbb3b
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -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")