M gnu/packages/image.scm => gnu/packages/image.scm +8 -7
@@ 2964,13 2964,14 @@ Wacom-style graphics tablets.")
(("'exiftool")
(string-append "'" (search-input-file inputs "bin/exiftool"))))))
(add-before 'install 'check
- (lambda _
- ;; Test without PATH to make sure ‘exiftool’ is properly found.
- (let ((path (getenv "PATH"))
- (pytest (which "pytest")))
- (setenv "PATH" "")
- (invoke pytest)
- (setenv "PATH" path))))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; Test without PATH to make sure ‘exiftool’ is properly found.
+ (let ((path (getenv "PATH"))
+ (pytest (which "pytest")))
+ (setenv "PATH" "")
+ (invoke pytest)
+ (setenv "PATH" path)))))
(add-after 'install 'install-bin
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))