gnu: Add python-notebook.

* gnu/packages/python.scm (python-notebook, python2-notebook): New
variables.
This commit is contained in:
Ricardo Wurmus 2016-11-01 13:20:41 +01:00 committed by Ricardo Wurmus
parent c60898a845
commit a0d62280f5
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 38 additions and 0 deletions

View File

@ -6804,6 +6804,44 @@ convert an @code{.ipynb} notebook file into various static formats including:
(define-public python2-nbconvert (define-public python2-nbconvert
(package-with-python2 python-nbconvert)) (package-with-python2 python-nbconvert))
(define-public python-notebook
(package
(name "python-notebook")
(version "4.2.3")
(source (origin
(method url-fetch)
(uri (pypi-uri "notebook" version))
(sha256
(base32
"0laq5c2f21frq6xcdckgq7raqhznbjb0qs0357g612z87wyn1a9r"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
;; HOME must be set for tests
(setenv "HOME" "/tmp")
(zero? (system* "nosetests")))))))
(propagated-inputs
`(("python-jupyter-core" ,python-jupyter-core)
("python-nbformat" ,python-nbformat)
("python-nbconvert" ,python-nbconvert)
("python-ipython" ,python-ipython)))
(native-inputs
`(("python-nose" ,python-nose)
("python-sphinx" ,python-sphinx)
("python-requests" ,python-requests)))
(home-page "http://jupyter.org/")
(synopsis "Web-based notebook environment for interactive computing")
(description
"The Jupyter HTML notebook is a web-based notebook environment for
interactive computing.")
(license license:bsd-3)))
(define-public python2-notebook
(package-with-python2 python-notebook))
(define-public python-chardet (define-public python-chardet
(package (package
(name "python-chardet") (name "python-chardet")