gnu: python-nbval: Fix build.

* gnu/packages/python-check.scm (python-nbval)
[phases]: Delete trailing #t.
{check}: Skip newly failing 'test_conf_ignore_stderr' test.  Remove INPUTS and
OUTPUTS arguments.  Add TESTS? and honor it.
This commit is contained in:
Maxim Cournoyer 2022-04-13 16:40:00 -04:00
parent 7d79d30e3a
commit d72c53fa43
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -1342,17 +1342,21 @@ (define-public python-nbval
(lambda _
;; This test fails because of a mismatch in the output of LaTeX
;; equation environments. Seems OK to skip.
(delete-file "tests/ipynb-test-samples/test-latex-pass-correctouput.ipynb")
#t))
(delete-file
"tests/ipynb-test-samples/test-latex-pass-correctouput.ipynb")))
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv" "-k"
(string-append
;; This only works with Pytest < 5.
"not nbdime_reporter"
;; https://github.com/computationalmodelling/nbval/pull/148.
" and not test_timeouts")))))))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv" "-k"
(string-append
;; This only works with Pytest < 5.
"not nbdime_reporter"
;; https://github.com/computationalmodelling/nbval/pull/148.
" and not test_timeouts"
;; It seems the output format has changed; the following
;; test fails with "Unexpected output fields from
;; running code: {'text/plain'}".
" and not test_conf_ignore_stderr "))))))))
(native-inputs
(list python-pytest python-pytest-cov python-sympy))
(propagated-inputs