guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit a3d6ac5b184f2d756560b970d98b905570d2451d
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Dec 16 10:22:21 2025 +0000

    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
---
 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 6a6f051edc..11b92502c8 100644
--- a/gnu/packages/jupyter.scm
+++ b/gnu/packages/jupyter.scm
@@ -430,33 +430,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
@@ -465,15 +457,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))

Reply via email to