guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#50628] [PATCH 003/154] gnu: Add python-xlwt.


From: Maxime Devos
Subject: [bug#50628] [PATCH 003/154] gnu: Add python-xlwt.
Date: Fri, 17 Sep 2021 14:35:09 +0200
User-agent: Evolution 3.34.2

Hartmut Goebel schreef op vr 17-09-2021 om 00:52 [+0200]:
> +(define-public python-xlwt
> +  (package
> +    (name "python-xlwt")
> +    (version "1.3.0")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "xlwt" version))
> +       (sha256
> +        (base32 "123c2pdamshkq75wwvck8fq0cjq1843xd3x9qaiz2a4vg9qi56f5"))))
> +    (build-system python-build-system)
> +    (arguments
> +     `(#:phases
> +       (modify-phases %standard-phases
> +         (replace 'check
> +           (lambda _
> +             (setenv "PYTHONPATH"
> +                     (string-append (getcwd) "/build/lib:"
> +                                    (getenv "PYTHONPATH")))
> +             (invoke "nosetests" "-v"))))))

Use (lambda* (#:key tests? #:allow-other-keys) (when tests? (setenv ...) 
(invoke ...)))
to let "guix build python-xlwt --without-tests=python-xlwt" work.  This would
be detected by "guix lint -c optional-tests" I think.

Greetings,
Maxime

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]