mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
ad1e6ce38a
commit
9635b811c0
1 changed files with 16 additions and 17 deletions
|
@ -28908,28 +28908,27 @@ Week instances stringify to this form.")
|
||||||
;; There's no source tarball on PyPI.
|
;; There's no source tarball on PyPI.
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/NaturalHistoryMuseum/pyzbar")
|
(url "https://github.com/NaturalHistoryMuseum/pyzbar")
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1fqlfg5p2v9lzzzi0si2sz54lblprk6jjjhjw54b64lp58c1yhsl"))))
|
(base32 "1fqlfg5p2v9lzzzi0si2sz54lblprk6jjjhjw54b64lp58c1yhsl"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
(add-after 'unpack 'remove-failing-test
|
#~(modify-phases %standard-phases
|
||||||
(lambda _
|
(add-after 'unpack 'remove-failing-test
|
||||||
;; This tests if find_library was called once, but we remove
|
(lambda _
|
||||||
;; the call in the stage below to make the library find libzbar.
|
;; This tests if find_library was called once, but we remove
|
||||||
(delete-file "pyzbar/tests/test_zbar_library.py")
|
;; the call in the stage below to make the library find libzbar.
|
||||||
#t))
|
(delete-file "pyzbar/tests/test_zbar_library.py")))
|
||||||
(add-before 'build 'set-library-file-name
|
(add-before 'build 'set-library-file-name
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda _
|
||||||
(let ((libzbar (assoc-ref inputs "zbar")))
|
(let ((libzbar #$(this-package-input "zbar")))
|
||||||
(substitute* "pyzbar/zbar_library.py"
|
(substitute* "pyzbar/zbar_library.py"
|
||||||
(("find_library\\('zbar'\\)")
|
(("find_library\\('zbar'\\)")
|
||||||
(string-append "'" libzbar "/lib/libzbar.so.0'")))
|
(string-append "'" libzbar "/lib/libzbar.so.0'")))))))))
|
||||||
#t))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list pkg-config python-numpy python-pillow))
|
(list pkg-config python-numpy python-pillow))
|
||||||
(inputs
|
(inputs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue