diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-16 10:22:21 +0000 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:19:31 +0100 |
| commit | 5136864a3fd85faca8e2c7f8fa31c6484d2677bf (patch) | |
| tree | 99f15ccaf5f8072e7cec7c94b73b8bbee7e94c9b | |
| parent | adb2e900012cf03a29423a047e71a2b1005a04a0 (diff) | |
gnu: python-jupyter-core: Update to 5.9.1.
* gnu/packages/jupyter.scm (python-jupyter-core): Update to 5.9.1.
[arguments] <tests-flags>: Rework skipped tests.
[phases]{disable-migration}: Rewrite "touch" with Guile.
[native-inputs]: Remove python-pytest-timeout.
Change-Id: I1b272eafeac129af05fd1c92f4ec72bb73be17f9
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
| -rw-r--r-- | gnu/packages/jupyter.scm | 38 |
1 files changed, 16 insertions, 22 deletions
diff --git a/gnu/packages/jupyter.scm b/gnu/packages/jupyter.scm index fc9880d1c2e..580d2152950 100644 --- a/gnu/packages/jupyter.scm +++ b/gnu/packages/jupyter.scm @@ -433,33 +433,25 @@ to Jupyter Server for their Python Web application backend.") (define-public python-jupyter-core (package (name "python-jupyter-core") - (version "5.7.2") + (version "5.9.1") (source (origin (method url-fetch) (uri (string-append (pypi-uri "jupyter_core" version))) (sha256 - (base32 "1n9nyp1skljbbkqp4j7mnihnyp83j9rxm5h4hfn33d7npcr8spxa")))) + (base32 "022mbd3dyg3chkcgg77qyn8mrzw9s05mhzv5rv1nd59v63zsl2ad")))) (build-system pyproject-build-system) (arguments (list + ;; tests: 73 passed, 20 skipped, 4 deselected #:test-flags - #~(list "-k" (string-join - ;; XXX: These tests fail with "ModuleNotFoundError: No - ;; module named 'jupyter_core'". - (list "not test_argv0" - "test_path_priority " - "test_not_on_path" - ;; These fail with: An incompatible sibling of - ;; 'AsyncTornadoApp' is already instantiated as - ;; singleton: SyncTornadoApp - "test_async_app" - "test_async_tornado_app" - ;; Fails with a deprecation warning - "test_sync_tornado_run" - ;; Expecting pip in the PATH. - "test_troubleshoot") - " and not ")) + ;; These tests try to unset environment variables, search for `jupyter`, + ;; write test files and fail eventually. + #~(list "--deselect=tests/test_command.py::test_not_on_path" + "--deselect=tests/test_command.py::test_path_priority" + "--deselect=tests/test_command.py::test_argv0" + ;; Expecting `pip` in the PATH. + "--deselect=tests/test_troubleshoot.py::test_troubleshoot") #:phases #~(modify-phases %standard-phases ;; Migration is running whenever etc/jupyter exists, but the @@ -468,15 +460,17 @@ to Jupyter Server for their Python Web application backend.") ;; already did that. (add-after 'install 'disable-migration (lambda _ - (mkdir-p (string-append #$output "/etc/jupyter")) - (invoke "touch" (string-append #$output "/etc/jupyter/migrated")))) + (let* ((etc (string-append #$output "/etc/jupyter")) + (migrated (string-append etc "/migrated"))) + (mkdir-p etc) + (with-output-to-file migrated + (const (display "\n")))))) (add-before 'check 'pre-check (lambda _ (setenv "HOME" "/tmp")))))) (native-inputs (list python-hatchling - python-pytest - python-pytest-timeout)) + python-pytest)) (propagated-inputs (list python-platformdirs python-traitlets)) |
