GNU bug report logs - #50628
[PATCH 000/154] Add 146 Tryton modules and some dependencies

Previous Next

Package: guix-patches;

Reported by: Hartmut Goebel <h.goebel <at> crazy-compilers.com>

Date: Thu, 16 Sep 2021 22:54:01 UTC

Severity: normal

Tags: patch

Done: Hartmut Goebel <h.goebel <at> crazy-compilers.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Maxime Devos <maximedevos <at> telenet.be>
To: Hartmut Goebel <h.goebel <at> crazy-compilers.com>, 50628 <at> debbugs.gnu.org
Subject: [bug#50628] [PATCH 003/154] gnu: Add python-xlwt.
Date: Fri, 17 Sep 2021 14:35:09 +0200
[Message part 1 (text/plain, inline)]
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
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 3 years and 237 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.