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
This commit is contained in:
Sharlatan Hellseher 2025-10-01 22:41:21 +01:00
parent ad1e6ce38a
commit 9635b811c0
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -28915,21 +28915,20 @@ Week instances stringify to this form.")
(base32 "1fqlfg5p2v9lzzzi0si2sz54lblprk6jjjhjw54b64lp58c1yhsl"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(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")
#t))
(delete-file "pyzbar/tests/test_zbar_library.py")))
(add-before 'build 'set-library-file-name
(lambda* (#:key inputs #:allow-other-keys)
(let ((libzbar (assoc-ref inputs "zbar")))
(lambda _
(let ((libzbar #$(this-package-input "zbar")))
(substitute* "pyzbar/zbar_library.py"
(("find_library\\('zbar'\\)")
(string-append "'" libzbar "/lib/libzbar.so.0'")))
#t))))))
(string-append "'" libzbar "/lib/libzbar.so.0'")))))))))
(native-inputs
(list pkg-config python-numpy python-pillow))
(inputs