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

commit d16eb8b9e978bc657fa3e6e49cacfe1897bb7054
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Mon Dec 15 23:43:20 2025 +0000

    gnu: python-ipython: Update to 9.8.0.
    
    * gnu/packages/python-xyz.scm (python-ipython): Update to 9.8.0.
    [arguments] <test-backend, test-flags>: Move custom {check} options
    here.
    <phases>: Remove 'make-docs-reproducible, resolved upstream; add
    'pre-check and use default 'check.
    [inputs]: Remove readline and which.
    [propagated-inputs]: Remove python-colorama and python-exceptiongroup;
    add python-ipython-pygments-lexers.
    [native-inputs]: Remove python-pickleshare, python-pytest-asyncio-0.21,
    and python-wheel; add python-pytest-asyncio and python-trio.
    
    Change-Id: I3f96109e70772cb07b6a24bb83058473f182e3ed
---
 gnu/packages/python-xyz.scm | 54 ++++++++++++++++++++++-----------------------
 1 file changed, 26 insertions(+), 28 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 62d692299e..27e250070c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -15104,7 +15104,7 @@ functions, useful in the context of writing unit tests 
among other uses.")
 (define-public python-ipython
   (package
     (name "python-ipython")
-    (version "8.37.0")   ;it's the latest version in 8.*.* series
+    (version "9.8.0")
     (source
      (origin
        (method git-fetch)
@@ -15113,13 +15113,19 @@ functions, useful in the context of writing unit 
tests among other uses.")
              (commit version)))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "02jrmqalcbj0vg887ssavlk6hqyiqkkk4y0cha8vcfbzwibp7lhc"))))
+        (base32 "01xislvlz33hlpbpf9cfgqabva3wzg49gb5437ypdzwldf8q25cg"))))
     (build-system pyproject-build-system)
     (arguments
      (list
-      ;; 1523 passed, 90 skipped, 5 deselected, 3 xfailed, 722 warnings
+      ;; tests: 1655 passed, 118 skipped, 3 xfailed, 7 warnings
+      ;; with-extra: 1681 passed, 87 skipped, 5 deselected, 3 xfailed, 8 
warnings
+      #:test-backend #~'custom
+      ;; XXX: It's a workaround to fix the error with module import
+      ;; "_pytest.pathlib.ImportPathMismatchError:", see:
+      ;; <https://codeberg.org/guix/guix/issues/2108>.
       #:test-flags
-      #~(list "-k" (string-join
+      #~(list "-m" "pytest" "-vv"
+              "-k" (string-join
                     ;; These need git.
                     (list "not test_json_getsysinfo"
                           "IPython.utils.sysinfo.sys_info"
@@ -15129,24 +15135,13 @@ functions, useful in the context of writing unit 
tests among other uses.")
                           "test_time_raise_on_interrupt")
                     " and not "))
       #:phases
-      '(modify-phases %standard-phases
-         (add-after 'unpack 'make-docs-reproducible
-           (lambda _
-             (substitute* "IPython/sphinxext/ipython_directive.py"
-               ((".*import datetime") "")
-               ((".*datetime.datetime.now\\(\\)") "")
-               (("%timeit") "# %timeit"))))
-         (replace 'check
-           (lambda* (#:key tests? test-flags #:allow-other-keys)
-             (when tests?
-               (setenv "HOME" "/tmp/")  ;required by some tests
-               (apply invoke "python" "-m" "pytest" "-vv"
-                      test-flags)))))))
-    (inputs (list readline which))
+      #~(modify-phases %standard-phases
+          (add-before 'check 'pre-check
+            (lambda _
+              (setenv "HOME" "/tmp"))))))
     (propagated-inputs
-     (list python-colorama
-           python-decorator
-           python-exceptiongroup
+     (list python-decorator
+           python-ipython-pygments-lexers
            python-jedi
            python-matplotlib-inline
            python-pexpect
@@ -15156,17 +15151,20 @@ functions, useful in the context of writing unit 
tests among other uses.")
            python-traitlets
            python-typing-extensions))
     (native-inputs
-     (list python-curio
+     (list python-pytest
+           python-pytest-asyncio
+           python-setuptools
+           python-testpath
+           ;; [extra]
+           python-curio
+           ;; python-ipykernel  ;cycles
+           ;; python-jupyter-ai ;not packaged
            python-matplotlib
+           ;; python-nbclient   ;cycles
            python-nbformat
            python-numpy
            python-pandas
-           python-pickleshare
-           python-pytest
-           python-pytest-asyncio-0.21
-           python-setuptools
-           python-testpath
-           python-wheel))
+           python-trio))
     (home-page "https://ipython.org";)
     (synopsis "IPython is a tool for interactive computing in Python")
     (description

Reply via email to