diff options
author | 宋文武 <iyzsong@member.fsf.org> | 2022-08-11 15:32:34 +0800 |
---|---|---|
committer | 宋文武 <iyzsong@member.fsf.org> | 2022-08-11 15:35:22 +0800 |
commit | 4c846ba9eb3fc97d2204d123f5ff92a979da47ba (patch) | |
tree | b4e67e3bd2081f76bcc36bd810fc9f6e635b9c3a /gnu/packages/python-xyz.scm | |
parent | f030ae422b6d13a7a21158d9a37c9760597d1573 (diff) | |
download | guix-4c846ba9eb3fc97d2204d123f5ff92a979da47ba.tar.gz guix-4c846ba9eb3fc97d2204d123f5ff92a979da47ba.zip |
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'.
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r-- | gnu/packages/python-xyz.scm | 13 |
1 files changed, 12 insertions, 1 deletions
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") |