From 5136864a3fd85faca8e2c7f8fa31c6484d2677bf Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 16 Dec 2025 10:22:21 +0000 Subject: [PATCH] gnu: python-jupyter-core: Update to 5.9.1. * gnu/packages/jupyter.scm (python-jupyter-core): Update to 5.9.1. [arguments] : Rework skipped tests. [phases]{disable-migration}: Rewrite "touch" with Guile. [native-inputs]: Remove python-pytest-timeout. Change-Id: I1b272eafeac129af05fd1c92f4ec72bb73be17f9 Signed-off-by: Rutherther --- gnu/packages/jupyter.scm | 38 ++++++++++++++++---------------------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/gnu/packages/jupyter.scm b/gnu/packages/jupyter.scm index fc9880d1c2e5786b38aee401884edae6572988e2..580d2152950448231f6433094350efdf6e67f453 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))