~ruther/guix-local

479b31e657b9ee190c3b32c45a55be947fa9a465 — Sharlatan Hellseher 4 months ago f3c2ee7
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
1 files changed, 8 insertions(+), 15 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +8 -15
@@ 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