guix-patches
[Top][All Lists]
Advanced

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

[bug#48289] [PATCH] gnu: Add python-pythonanywhere.


From: Maxime Devos
Subject: [bug#48289] [PATCH] gnu: Add python-pythonanywhere.
Date: Sat, 08 May 2021 23:16:23 +0200
User-agent: Evolution 3.34.2

Filip Lajszczak schreef op za 08-05-2021 om 15:28 [+0200]:
> * gnu/packages/python-xyz.scm (python-pythonanywhere): New variable.
> [...]
> +   (arguments
> +    `(#:phases (modify-phases %standard-phases
> +      (add-before 'check 'change-home
> +       (lambda _
> +        (setenv "HOME" "/tmp") #t))

Phases do not need to return #t anymore; the warning you get if you 
remove it is misleading.  The warning will disappear once core-updates
is merged.

> +      (replace 'check
> +       (lambda _
> +        (invoke "pytest" "-m" "not slowtest") #t)))))

To support "guix build --without-tests" and cross-compilation, make this

> +      (replace 'check
> +       (lambda* (#:key tests? #:allow-other-keys)
> +        (when tests?
> +         (invoke "pytest" "-m" "not slowtest"))))

The native-inputs and propagated-inputs seem about right to me,
but I haven't tested.

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]