summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-10-01 22:41:21 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-01 22:55:25 +0100
commit9635b811c005d20ce8bcaa1d38a30f07cb398cd0 (patch)
tree8275889065f06e962749453013c8f9a77901ec7f /gnu/packages/python-xyz.scm
parentad1e6ce38ab722bfea5889125275941d1f11f7b7 (diff)
gnu: python-pyzbar: Refresh package style.
* gnu/packages/python-xyz.scm (python-pyzbar): Use G-expressions, remove trailing #t from lambdas, fix indentation, Change-Id: Ie73b72a61cc22190a9ef834d449bf76c90a392b6
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm33
1 files changed, 16 insertions, 17 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 075348e849..868c222bfd 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -28908,28 +28908,27 @@ Week instances stringify to this form.")
;; There's no source tarball on PyPI.
(method git-fetch)
(uri (git-reference
- (url "https://github.com/NaturalHistoryMuseum/pyzbar")
- (commit (string-append "v" version))))
+ (url "https://github.com/NaturalHistoryMuseum/pyzbar")
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1fqlfg5p2v9lzzzi0si2sz54lblprk6jjjhjw54b64lp58c1yhsl"))))
(build-system python-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'remove-failing-test
- (lambda _
- ;; This tests if find_library was called once, but we remove
- ;; the call in the stage below to make the library find libzbar.
- (delete-file "pyzbar/tests/test_zbar_library.py")
- #t))
- (add-before 'build 'set-library-file-name
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((libzbar (assoc-ref inputs "zbar")))
- (substitute* "pyzbar/zbar_library.py"
- (("find_library\\('zbar'\\)")
- (string-append "'" libzbar "/lib/libzbar.so.0'")))
- #t))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-failing-test
+ (lambda _
+ ;; This tests if find_library was called once, but we remove
+ ;; the call in the stage below to make the library find libzbar.
+ (delete-file "pyzbar/tests/test_zbar_library.py")))
+ (add-before 'build 'set-library-file-name
+ (lambda _
+ (let ((libzbar #$(this-package-input "zbar")))
+ (substitute* "pyzbar/zbar_library.py"
+ (("find_library\\('zbar'\\)")
+ (string-append "'" libzbar "/lib/libzbar.so.0'")))))))))
(native-inputs
(list pkg-config python-numpy python-pillow))
(inputs