guix-commits
[Top][All Lists]
Advanced

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

16/20: gnu: python-gast: Enable tests.


From: guix-commits
Subject: 16/20: gnu: python-gast: Enable tests.
Date: Sun, 11 Sep 2022 13:46:55 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit 9a6c3b7b6a4163e72be25e8863d558137396ae58
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sun Sep 11 16:55:16 2022 +0200

    gnu: python-gast: Enable tests.
    
    * gnu/packages/python-xyz.scm (python-gast)[arguments]: Override check 
phase.
    [native-inputs]: Add PYTHON-PYTEST.
---
 gnu/packages/python-xyz.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 664d340892..9d7ebf32ef 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23553,6 +23553,14 @@ distribution.")
        (sha256
         (base32 "1sidaczriw54pfkj3523y9j9q2harrczc1qqgnfaylz641ca5gng"))))
     (build-system python-build-system)
+    (arguments
+     '(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda* (#:key tests? #:allow-other-keys)
+                      (when tests?
+                        (invoke "pytest" "-vv")))))))
+    (native-inputs
+     (list python-pytest))
     (propagated-inputs
      (list python-astunparse))
     (home-page "https://github.com/serge-sans-paille/gast/";)



reply via email to

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