mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-notebook: Move to jupyter.
* gnu/packages/python-xyz.scm (python-notebook): Move from here ... * gnu/packages/jupyter.scm: ... to here. * gnu/packages/sagemath.scm: Add jupyter module. Change-Id: I44aca3a14573b7700cdedeaae5e05b11ad48371c
This commit is contained in:
parent
de0ec3749e
commit
6704f7134e
3 changed files with 91 additions and 87 deletions
|
@ -19328,91 +19328,6 @@ convert an @code{.ipynb} notebook file into various static formats including:
|
|||
@end enumerate\n")
|
||||
(license license:bsd-3)))
|
||||
|
||||
(define-public python-notebook
|
||||
(package
|
||||
(name "python-notebook")
|
||||
(version "6.5.7")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "notebook" version))
|
||||
(sha256
|
||||
(base32
|
||||
"1r38fwr0r4xgkz8y27w3xyz2dk97ih5azba28jylyqxcvw8r1sq4"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
'(list "-k" (string-append
|
||||
;; TODO: This tests fails because nbconvert does not
|
||||
;; list "python" as a format.
|
||||
"not test_list_formats"
|
||||
;; AssertionError: Lists differ:
|
||||
" and not test_disable"
|
||||
" and not test_enable"
|
||||
" and not test_merge_config"
|
||||
" and not test_load_ordered"
|
||||
" and not test_list_running_sock_servers"
|
||||
" and not test_run")
|
||||
;; These tests require a browser.
|
||||
"--ignore=notebook/tests/selenium")
|
||||
#:phases
|
||||
'(modify-phases %standard-phases
|
||||
(add-after 'unpack 'use-our-home-for-tests
|
||||
(lambda _
|
||||
;; The 'get_patch_env' function in this file reads:
|
||||
;; 'HOME': cls.home_dir
|
||||
;; but for some reason, that definition of HOME is not what the
|
||||
;; GLib/GIO trash mechanism honors, which would cause test
|
||||
;; failures. Instead, set 'HOME' here to an existing directory
|
||||
;; and let the tests honor it.
|
||||
(substitute* "notebook/tests/launchnotebook.py"
|
||||
(("'HOME': .*," all)
|
||||
(string-append "# " all "\n")))
|
||||
(setenv "HOME" (getcwd))))
|
||||
;; Because python-jsonschema has an old python-webcolor. Remove this
|
||||
;; when python-team branch is merged.
|
||||
(delete 'sanity-check)
|
||||
(add-before 'check 'pre-check
|
||||
(lambda _
|
||||
;; Interferes with test expectations.
|
||||
(unsetenv "JUPYTER_CONFIG_PATH")
|
||||
;; Some tests do not expect all files to be installed in the
|
||||
;; same directory, but JUPYTER_PATH contains multiple entries.
|
||||
(unsetenv "JUPYTER_PATH"))))))
|
||||
(propagated-inputs
|
||||
(list python-argon2-cffi
|
||||
python-ipykernel
|
||||
python-ipython-genutils
|
||||
python-jinja2
|
||||
python-jupyter-client
|
||||
python-jupyter-core
|
||||
python-nest-asyncio
|
||||
python-nbclassic
|
||||
python-nbconvert
|
||||
python-nbformat
|
||||
python-prometheus-client
|
||||
python-pyzmq
|
||||
python-send2trash
|
||||
python-terminado
|
||||
python-tornado-6
|
||||
python-traitlets))
|
||||
(native-inputs
|
||||
(list python-coverage
|
||||
python-jupyter-server
|
||||
python-nbval
|
||||
python-pytest
|
||||
python-pytest-cov
|
||||
python-requests
|
||||
python-requests-unixsocket2
|
||||
python-setuptools
|
||||
python-wheel))
|
||||
(home-page "https://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 python-widgetsnbextension
|
||||
(package
|
||||
(name "python-widgetsnbextension")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue