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:
parent
146e931523
commit
ce58adbb3b
|
@ -223,17 +223,17 @@ (define-public java-usb4java
|
||||||
(define-public python-libusb1
|
(define-public python-libusb1
|
||||||
(package
|
(package
|
||||||
(name "python-libusb1")
|
(name "python-libusb1")
|
||||||
(version "1.9.3")
|
(version "2.0.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "libusb1" version))
|
(uri (pypi-uri "libusb1" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0j8p7jb7sibiiib18vyv3w5rrk0f4d2dl99bs18nwkq6pqvwxrk0"))))
|
"0ikc7z7mdyr8pm0mk3ibab1hqrq4cpi9frmc3p94hsmbyzn85fnk"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules ((srfi srfi-1)
|
'(#:modules ((srfi srfi-1)
|
||||||
(guix build utils)
|
(guix build utils)
|
||||||
(guix build python-build-system))
|
(guix build python-build-system))
|
||||||
#:phases
|
#:phases
|
||||||
|
@ -242,19 +242,17 @@ (define-public python-libusb1
|
||||||
(lambda* (#:key out #:allow-other-keys)
|
(lambda* (#:key out #:allow-other-keys)
|
||||||
;; Was relicensed to LGPL 2.1+, but old COPYING file still left
|
;; Was relicensed to LGPL 2.1+, but old COPYING file still left
|
||||||
;; in source. Remove it so it does not get installed.
|
;; in source. Remove it so it does not get installed.
|
||||||
(delete-file "COPYING")
|
(delete-file "COPYING")))
|
||||||
#t))
|
|
||||||
(add-after 'unpack 'fix-libusb-reference
|
(add-after 'unpack 'fix-libusb-reference
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(substitute* "usb1/libusb1.py"
|
(substitute* "usb1/_libusb1.py"
|
||||||
(("libusb_path = ctypes.util.find_library\\(base_name\\)")
|
(("libusb_path = ctypes\\.util\\.find_library\\(base_name\\)")
|
||||||
(string-append
|
(string-append
|
||||||
"libusb_path = \""
|
"libusb_path = \""
|
||||||
(find (negate symbolic-link?)
|
(find (negate symbolic-link?)
|
||||||
(find-files (assoc-ref inputs "libusb")
|
(find-files (assoc-ref inputs "libusb")
|
||||||
"^libusb.*\\.so\\..*"))
|
"^libusb.*\\.so\\..*"))
|
||||||
"\"")))
|
"\""))))))))
|
||||||
#t)))))
|
|
||||||
(propagated-inputs (list libusb))
|
(propagated-inputs (list libusb))
|
||||||
(home-page "https://github.com/vpelletier/python-libusb1")
|
(home-page "https://github.com/vpelletier/python-libusb1")
|
||||||
(synopsis "Pure-python wrapper for libusb-1.0")
|
(synopsis "Pure-python wrapper for libusb-1.0")
|
||||||
|
|
Loading…
Reference in a new issue