guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 479b31e657b9ee190c3b32c45a55be947fa9a465
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Oct 28 10:09:35 2025 +0000

    gnu: python-symengine: Switch to pytest.
    
    * gnu/packages/python-xyz.scm (python-symengine)[arguments]
    <test-flags>: Provide option to test against installed module.
    [native-inputs]: Remove python-nose2 and python-wheel; add python-pytest.
    
    Change-Id: Icdf070410810db7b108aa9340b6839ef98136ab3
---
 gnu/packages/python-xyz.scm | 23 ++++++++---------------
 1 file changed, 8 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 39ec8e8393..f866355bd1 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20063,21 +20063,14 @@ document.")
     (build-system pyproject-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 "nose2" "-v" "symengine.tests"))
-                  (format #t "test suite not run~%")))))))
-    (native-inputs (list cmake-minimal
-                         python-cython
-                         python-nose2
-                         python-setuptools
-                         python-wheel))
-    (inputs (list symengine))
+      #:test-flags #~(list "--pyargs" "symengine")))
+    (native-inputs
+     (list cmake-minimal
+           python-cython
+           python-pytest
+           python-setuptools))
+    (inputs
+     (list symengine))
     (home-page "https://github.com/symengine/symengine.py";)
     (synopsis "Python library providing wrappers to SymEngine")
     (description

Reply via email to