gnu: python-nbval: Update to 0.11.0.

* gnu/packages/python-check.scm (python-nbval): Update to 0.11.0.
[arguments]<#:phases>: Adjust 'check' phase.
[native-inputs]: Remove python-pytest.
[propagated-inputs]: Add python-coverage and python-pytest.  Remove
python-six.
This commit is contained in:
David Elsing 2024-08-04 22:15:50 +00:00 committed by Ludovic Courtès
parent e85b3fc595
commit 8349d30806
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1609,13 +1609,13 @@ (define-public python-nbmake
(define-public python-nbval (define-public python-nbval
(package (package
(name "python-nbval") (name "python-nbval")
(version "0.9.6") (version "0.11.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "nbval" version)) (uri (pypi-uri "nbval" version))
(sha256 (sha256
(base32 "0h3xrnw0mj1srigrx2rfnd73h8s0xjycclmjs0vx7qkfyqpcvvyg")))) (base32 "154h6xpf9h6spgg3ax6k79fd40j197ipwnfjmf5rc2kvc2bmgjbp"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases
@ -1629,21 +1629,16 @@ (define-public python-nbval
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "pytest" "-vv" "-k" (invoke "pytest" "-vv"
(string-append ;; nbdime forms a dependency cycle
;; This only works with Pytest < 5. "--ignore=tests/test_nbdime_reporter.py")))))))
"not nbdime_reporter" (native-inputs (list python-pytest-cov python-sympy))
;; 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 (propagated-inputs
(list python-ipykernel python-jupyter-client python-nbformat (list python-coverage
python-six)) python-ipykernel
python-jupyter-client
python-nbformat
python-pytest))
(home-page "https://github.com/computationalmodelling/nbval") (home-page "https://github.com/computationalmodelling/nbval")
(synopsis "Pytest plugin to validate Jupyter notebooks") (synopsis "Pytest plugin to validate Jupyter notebooks")
(description (description