diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2021-04-13 13:15:13 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2021-04-13 13:41:17 +0200 |
commit | 6d0a3dc4bc98ebcda0f2ef8d426b2d29c3eaa77e (patch) | |
tree | 11f2484338efed4bb850df537a51bfa4503998b7 | |
parent | e9008a66eacb48ae9562c0cfbc67f3f7307750b0 (diff) | |
download | guix-6d0a3dc4bc98ebcda0f2ef8d426b2d29c3eaa77e.tar.gz |
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.
-rw-r--r-- | gnu/packages/python-xyz.scm | 42 |
1 files changed, 27 insertions, 15 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 23dc03e848..f837bf7429 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -10428,28 +10428,40 @@ convert an @code{.ipynb} notebook file into various static formats including: `(#:phases (modify-phases %standard-phases (replace 'check - (lambda _ + (lambda* (#:key tests? inputs outputs #:allow-other-keys) ;; These tests require a browser (delete-file-recursively "notebook/tests/selenium") - ;; Some tests need HOME - (setenv "HOME" "/tmp") - ;; This file contains "warningfilters", which are not supported - ;; by this version of nose. - (delete-file "setup.cfg") - (with-directory-excursion "/tmp" - (invoke "nosetests" "-v")) - #t))))) + (when tests? + (add-installed-pythonpath inputs outputs) + ;; Some tests need HOME + (setenv "HOME" "/tmp") + (with-directory-excursion "/tmp" + (invoke "pytest" "-vv" + ;; TODO: This tests fails because nbconvert does not + ;; list "python" as a format. + "-k" "not test_list_formats")))))))) (propagated-inputs - `(("python-jupyter-core" ,python-jupyter-core) - ("python-nbformat" ,python-nbformat) + `(("python-argon2-cffi" ,python-argon2-cffi) + ("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-nbformat" ,python-nbformat) ("python-prometheus-client" ,python-prometheus-client) + ("python-pyzmq" ,python-pyzmq) ("python-send2trash" ,python-send2trash) - ("python-terminado" ,python-terminado))) + ("python-terminado" ,python-terminado) + ("python-tornado" ,python-tornado-6) + ("python-traitlets" ,python-traitlets))) (native-inputs - `(("python-nose" ,python-nose) - ("python-sphinx" ,python-sphinx) - ("python-requests" ,python-requests))) + `(("python-coverage" ,python-coverage) + ("python-nbval" ,python-nbval) + ("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/") (synopsis "Web-based notebook environment for interactive computing") (description |