gnu: python-notebook: Update to 5.7.4.

* gnu/packages/python.scm (python-notebook): Update to 5.7.4.
[arguments]: Use INVOKE for tests.
[propagated-inputs]: Remove python-ipython; add python-prometheus-client,
python-send2trash, and python-terminado.
This commit is contained in:
Ricardo Wurmus 2019-01-02 16:27:18 +01:00 committed by Ricardo Wurmus
parent 493e5e6daa
commit 91dd8b3687
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 14 additions and 5 deletions

View File

@ -7157,27 +7157,36 @@ system.")
(define-public python-notebook (define-public python-notebook
(package (package
(name "python-notebook") (name "python-notebook")
(version "4.2.3") (version "5.7.4")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "notebook" version)) (uri (pypi-uri "notebook" version))
(sha256 (sha256
(base32 (base32
"0laq5c2f21frq6xcdckgq7raqhznbjb0qs0357g612z87wyn1a9r")))) "0jm7324mbxljmn9hgapj66q7swyz5ai92blmr0jpcy0h80x6f26r"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'check (replace 'check
(lambda _ (lambda _
;; HOME must be set for tests ;; These tests require a browser
(delete-file-recursively "notebook/tests/selenium")
;; Some tests need HOME
(setenv "HOME" "/tmp") (setenv "HOME" "/tmp")
(zero? (system* "nosetests"))))))) ;; 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)))))
(propagated-inputs (propagated-inputs
`(("python-jupyter-core" ,python-jupyter-core) `(("python-jupyter-core" ,python-jupyter-core)
("python-nbformat" ,python-nbformat) ("python-nbformat" ,python-nbformat)
("python-nbconvert" ,python-nbconvert) ("python-nbconvert" ,python-nbconvert)
("python-ipython" ,python-ipython))) ("python-prometheus-client" ,python-prometheus-client)
("python-send2trash" ,python-send2trash)
("python-terminado" ,python-terminado)))
(native-inputs (native-inputs
`(("python-nose" ,python-nose) `(("python-nose" ,python-nose)
("python-sphinx" ,python-sphinx) ("python-sphinx" ,python-sphinx)