guix-commits
[Top][All Lists]
Advanced

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

12/20: gnu: python-astroquery: Use G-Expressions.


From: guix-commits
Subject: 12/20: gnu: python-astroquery: Use G-Expressions.
Date: Thu, 25 May 2023 20:39:54 -0400 (EDT)

monego pushed a commit to branch master
in repository guix.

commit d6e587e11db5ae96a94cd0f04773b9845e71f9fc
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Wed May 24 22:51:46 2023 +0100

    gnu: python-astroquery: Use G-Expressions.
    
    * gnu/packages/astronomy.scm (python-astroquery)[arguments]: Use
    G-Expressions.
    
    Signed-off-by: Vinicius Monego <monego@posteo.net>
---
 gnu/packages/astronomy.scm | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index ace762e518..5c98c6a067 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -1280,18 +1280,17 @@ astronomy and astrophysics.")
         (base32 "1vhkzsqlgn3ji5by2rdf2gwklhbyzvpzb1iglalhqjkkrdaaaz1h"))))
     (build-system python-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-before 'check 'writable-home
-           (lambda _                    ; some tests need a writable home
-             (setenv "HOME" (getcwd))))
-         (replace 'check
-           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
-             (when tests?
-               (add-installed-pythonpath inputs outputs)
-               (invoke "python" "-m" "pytest" "--pyargs" "astroquery"
-                       ;; Skip tests that require online data.
-                       "-m" "not remote_data")))))))
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-before 'check 'writable-home
+                 (lambda _              ; some tests need a writable home
+                   (setenv "HOME" (getcwd))))
+               (replace 'check
+                 (lambda* (#:key tests? #:allow-other-keys)
+                   (when tests?
+                     (invoke "python" "-m" "pytest" "--pyargs" "astroquery"
+                             ;; Skip tests that require online data.
+                             "-m" "not remote_data")))))))
     (propagated-inputs
      (list python-astropy
            python-beautifulsoup4



reply via email to

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