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