From 479b31e657b9ee190c3b32c45a55be947fa9a465 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 28 Oct 2025 10:09:35 +0000 Subject: [PATCH] gnu: python-symengine: Switch to pytest. * gnu/packages/python-xyz.scm (python-symengine)[arguments] : 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 39ec8e8393a7a256f734c4235fe682242b1d0b9e..f866355bd115b6e679d06f71f1b6ac07d3e2d1fb 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