guix-commits
[Top][All Lists]
Advanced

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

branch master updated: gnu: python-symengine: Fix tests.


From: guix-commits
Subject: branch master updated: gnu: python-symengine: Fix tests.
Date: Thu, 11 Aug 2022 03:36:29 -0400

This is an automated email from the git hooks/post-receive script.

iyzsong pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 4c846ba9eb gnu: python-symengine: Fix tests.
4c846ba9eb is described below

commit 4c846ba9eb3fc97d2204d123f5ff92a979da47ba
Author: 宋文武 <iyzsong@member.fsf.org>
AuthorDate: Thu Aug 11 15:32:34 2022 +0800

    gnu: python-symengine: Fix tests.
    
    This fixes <https://issues.guix.gnu.org/57104>.
    
    * gnu/packages/python-xyz.scm (python-symengine):
    [native-inputs]: Add python-nose.
    [arguments]: Run tests with 'nosetests'.
---
 gnu/packages/python-xyz.scm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0ea9b9b25f..c21fe67f20 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -14645,8 +14645,19 @@ document.")
        (sha256
         (base32 "0qjgdbnb10kfk7jdhxnzfl8cpaps81k8vap7gm7q9ym3pgslazhg"))))
     (build-system python-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'check
+            (lambda* (#:key tests? #:allow-other-keys)
+              (if tests?
+                  ;; Run tests against installed package.
+                  (with-directory-excursion "/tmp"
+                    (invoke "nosetests" "-v" "symengine.tests"))
+                  (format #t "test suite not run~%")))))))
     (native-inputs
-     (list cmake python-cython))
+     (list cmake python-cython python-nose))
     (inputs
      (list symengine))
     (home-page "https://github.com/symengine/symengine.py";)



reply via email to

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