Subject: [bug#33059] [PATCH 09/10] gnu: Add python-fenics-dolfin.

From: [email-masked] (Ludovic Courtès)
Date: Thu, 25 Oct 2018 00:15:04 +0200

Paul Garlick <[email-masked]> skribis:

> * gnu/packages/simulation.scm (python-fenics-dolfin): New variable.

[...]

> +           (lambda _
> +             (use-modules (ice-9 regex)
> +                          (ice-9 rdelim)
> +                          (guix build utils)
> +                          (rnrs io ports))

Rather #:modules.

> +             ;; Exclude tests that require meshes supplied by git-lfs.
> +             (with-atomic-file-replacement "demo/test.py"
> +               (let ((rx (make-regexp "stem !")))
> +                 (lambda (in out)
> +                   (let loop ()

Same question as before about using ‘substitute*’.

> +             (chdir "../demo")
> +             ;; Check demos.
> +             (invoke "python" "generate-demo-files.py")
> +             (and (invoke "python" "-m" "pytest" "-v" "test.py")
> +                  (invoke "python" "-m" "pytest" "-v" "test.py"
> +                          "--mpiexec=mpiexec" "--num-proc=3"))
> +             (chdir "..")

Rather ‘with-directory-excursion’.

> +    (home-page
> +      "https://bitbucket.org/fenics-project/dolfin/")
> +    (synopsis
> +      "High-level problem solving environment for differential equations")

Single line.  :-)