Subject: bug#64350: python-wand-0.6.11 fails in check phase

From: Csepp <[email-masked]>
Date: Fri, 30 Jun 2023 17:21:06 +0200

Thorsten Wilms <[email-masked]> writes:

> Hi, python-wand 0.6.11 fails to install. I found this in the log:
>
> phase `add-install-to-path' succeeded after 0.0 seconds
> starting phase `wrap'
> find-files: /gnu/store/8y1vnzs66bnfgiaxdxhmc7wd9ggkcpy6-python-wand-0.6.11/bin: No such file or directory
> find-files: /gnu/store/8y1vnzs66bnfgiaxdxhmc7wd9ggkcpy6-python-wand-0.6.11/sbin: No such file or directory
> phase `wrap' succeeded after 0.0 seconds
> starting phase `check'
> error: in phase 'check': uncaught exception:
> unbound-variable #f "Unbound variable: ~S" (tests?) #f 
> phase `check' failed after 0.0 seconds
> Backtrace:
>           10 (primitive-load "/gnu/store/m7pmcj4czzw4pc40s6sfyahq8q9…")
> In guix/build/gnu-build-system.scm:
>     908:2  9 (gnu-build #:source _ #:outputs _ #:inputs _ #:phases . #)
> In ice-9/boot-9.scm:
>   1752:10  8 (with-exception-handler _ _ #:unwind? _ # _)
> In srfi/srfi-1.scm:
>     634:9  7 (for-each #<procedure 7ffff77f40e0 at guix/build/gnu-b…> …)
> In ice-9/boot-9.scm:
>   1752:10  6 (with-exception-handler _ _ #:unwind? _ # _)
> In guix/build/gnu-build-system.scm:
>    929:23  5 (_)
> In ice-9/eval.scm:
>    279:15  4 (_ #(#(#<directory (guile-user) 7ffff77f7c80>) (# # …)))
>    223:20  3 (proc #(#(#<directory (guile-user) 7ffff77f7c80>) (# …)))
> In unknown file:
>            2 (%resolve-variable (7 . tests?) #<directory (guile-user…>)
> In ice-9/boot-9.scm:
>   1685:16  1 (raise-exception _ #:continuable? _)
>   1685:16  0 (raise-exception _ #:continuable? _)
>
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> Unbound variable: tests?

Sorry, don't have the time for a proper patch.
Replace this:
lambda _
with this
lambda* (#:keys tests? #:allow-other-keys)

Feel free to send it as a patch.