gnu: python-notebook: Update inputs.

* gnu/packages/python-xyz.scm (python-notebook)[propagated-inputs]: Add
python-argon2-cffi, python-ipykernel, python-ipython-genutils, python-jinja2,
python-jupyter-client, python-pyzmq, python-tornado-6, and python-traitlets.
[native-inputs]: Remove python-nose and python-sphinx; add python-coverage,
python-nbval, python-pytest, python-pytest-cov, and
python-requests-unixsocket.
[arguments]: Use pytest instead of nosetests.
This commit is contained in:
Ricardo Wurmus 2021-04-13 13:15:13 +02:00
parent e9008a66ea
commit 6d0a3dc4bc
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -10428,28 +10428,40 @@ (define-public python-notebook
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'check (replace 'check
(lambda _ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
;; These tests require a browser ;; These tests require a browser
(delete-file-recursively "notebook/tests/selenium") (delete-file-recursively "notebook/tests/selenium")
;; Some tests need HOME (when tests?
(setenv "HOME" "/tmp") (add-installed-pythonpath inputs outputs)
;; This file contains "warningfilters", which are not supported ;; Some tests need HOME
;; by this version of nose. (setenv "HOME" "/tmp")
(delete-file "setup.cfg") (with-directory-excursion "/tmp"
(with-directory-excursion "/tmp" (invoke "pytest" "-vv"
(invoke "nosetests" "-v")) ;; TODO: This tests fails because nbconvert does not
#t))))) ;; list "python" as a format.
"-k" "not test_list_formats"))))))))
(propagated-inputs (propagated-inputs
`(("python-jupyter-core" ,python-jupyter-core) `(("python-argon2-cffi" ,python-argon2-cffi)
("python-nbformat" ,python-nbformat) ("python-ipykernel" ,python-ipykernel)
("python-ipython-genutils" ,python-ipython-genutils)
("python-jinja2" ,python-jinja2)
("python-jupyter-client" ,python-jupyter-client)
("python-jupyter-core" ,python-jupyter-core)
("python-nbconvert" ,python-nbconvert) ("python-nbconvert" ,python-nbconvert)
("python-nbformat" ,python-nbformat)
("python-prometheus-client" ,python-prometheus-client) ("python-prometheus-client" ,python-prometheus-client)
("python-pyzmq" ,python-pyzmq)
("python-send2trash" ,python-send2trash) ("python-send2trash" ,python-send2trash)
("python-terminado" ,python-terminado))) ("python-terminado" ,python-terminado)
("python-tornado" ,python-tornado-6)
("python-traitlets" ,python-traitlets)))
(native-inputs (native-inputs
`(("python-nose" ,python-nose) `(("python-coverage" ,python-coverage)
("python-sphinx" ,python-sphinx) ("python-nbval" ,python-nbval)
("python-requests" ,python-requests))) ("python-pytest" ,python-pytest)
("python-pytest-cov" ,python-pytest-cov)
("python-requests" ,python-requests)
("python-requests-unixsocket" ,python-requests-unixsocket)))
(home-page "https://jupyter.org/") (home-page "https://jupyter.org/")
(synopsis "Web-based notebook environment for interactive computing") (synopsis "Web-based notebook environment for interactive computing")
(description (description