mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
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:
parent
e9008a66ea
commit
6d0a3dc4bc
1 changed files with 27 additions and 15 deletions
|
@ -10428,28 +10428,40 @@ (define-public python-notebook
|
|||
`(#: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")
|
||||
(when tests?
|
||||
(add-installed-pythonpath inputs outputs)
|
||||
;; 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)))))
|
||||
(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
|
||||
|
|
Loading…
Reference in a new issue