[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/07: gnu: python-pyusb: Use G-Expressions.
From: |
guix-commits |
Subject: |
05/07: gnu: python-pyusb: Use G-Expressions. |
Date: |
Wed, 27 Sep 2023 18:07:22 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit c307a18415d0ffa1b48acb1cc9ea627c96fef13c
Author: Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com>
AuthorDate: Wed Sep 20 12:05:26 2023 +0200
gnu: python-pyusb: Use G-Expressions.
* gnu/packages/usb.scm (python-pyusb) <arguments>: Use G-Expressions
style instead of quoting.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/libusb.scm | 35 +++++++++++++++++------------------
1 file changed, 17 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm
index e615b81ea3..469882e871 100644
--- a/gnu/packages/libusb.scm
+++ b/gnu/packages/libusb.scm
@@ -288,24 +288,23 @@ wrapper for accessing libusb-1.0.")
"1fg7knfzybzija2b01pzrzhzsj989scl12sb2ra4f503l8279k54"))))
(build-system python-build-system)
(arguments
- `(#:tests? #f ; no tests
- #:modules ((srfi srfi-1)
- (srfi srfi-26)
- (guix build utils)
- (guix build python-build-system))
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'fix-libusb-reference
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "usb/libloader.py"
- (("lib = locate_library\\(candidates, find_library\\)")
- (string-append
- "lib = \""
- (find (negate symbolic-link?)
- (find-files (assoc-ref inputs "libusb")
- "^libusb-.*\\.so\\..*"))
- "\"")))
- #t)))))
+ (list #:tests? #f ; no tests
+ #:modules '((srfi srfi-1)
+ (srfi srfi-26)
+ (guix build utils)
+ (guix build python-build-system))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-libusb-reference
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "usb/libloader.py"
+ (("lib = locate_library\\(candidates, find_library\\)")
+ (string-append
+ "lib = \""
+ (find (negate symbolic-link?)
+ (find-files (assoc-ref inputs "libusb")
+ "^libusb-.*\\.so\\..*"))
+ "\""))))))))
(native-inputs
(list python-setuptools-scm))
- branch master updated (bab1d1704d -> d0438fcf65), guix-commits, 2023/09/27
- 02/07: gnu: Add blinkenlights., guix-commits, 2023/09/27
- 05/07: gnu: python-pyusb: Use G-Expressions.,
guix-commits <=
- 01/07: tests: ‘rewrite-url’ test no longer depends on network access., guix-commits, 2023/09/27
- 03/07: gnu: Add qdl., guix-commits, 2023/09/27
- 06/07: gnu: python-pyusb: Add libusb-compat backend., guix-commits, 2023/09/27
- 07/07: gnu: Add liquidctl., guix-commits, 2023/09/27
- 04/07: gnu: Add python-smbus., guix-commits, 2023/09/27