[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
86/361: gnu: python-jupyter-core: Update to 5.7.2.
From: |
guix-commits |
Subject: |
86/361: gnu: python-jupyter-core: Update to 5.7.2. |
Date: |
Thu, 21 Nov 2024 06:28:55 -0500 (EST) |
sharlatan pushed a commit to branch python-team
in repository guix.
commit 30c0a81eff429d0edb9be3a0f62f5983d954e4da
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon May 6 22:51:54 2024 +0200
gnu: python-jupyter-core: Update to 5.7.2.
* gnu/packages/python-xyz.scm (python-jupyter-core): Update to 5.7.2.
[native-inputs]: Add python-hatchling, python-pre-commit, python-pytest-cov,
and python-pytest-timeout.
[propagated-inputs]: Add python-platformdirs.
[build-system]: Use pyproject-build-system.
[arguments]: Use #:test-flags instead of custom 'check phase; remove phase
'patch-testsuite; disable a few tests; add phase 'pre-check.
Change-Id: I5f415688d17de1c6b4581a0b339359f7efee68c5
---
gnu/packages/python-xyz.scm | 65 ++++++++++++++++++++++++---------------------
1 file changed, 34 insertions(+), 31 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 999bb2cbb7..fae3e1b8a9 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12683,39 +12683,38 @@ container data structures in Python).")
(define-public python-jupyter-core
(package
(name "python-jupyter-core")
- (version "4.10.0")
+ (version "5.7.2")
(source
(origin
(method url-fetch)
(uri (string-append (pypi-uri "jupyter_core" version)))
(sha256
(base32
- "1v0s31rmwppdmww135hif03hy164j9kimirh24kxfcbvdfql9pm6"))))
- (build-system python-build-system)
+ "1n9nyp1skljbbkqp4j7mnihnyp83j9rxm5h4hfn33d7npcr8spxa"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; Some tests write to $HOME.
- (setenv "HOME" "/tmp")
- (invoke "pytest" "-vv"
- "-k"
- (string-append
- ;; XXX: These tests fail with "ModuleNotFoundError: No
- ;; module named 'jupyter_core'".
- "not test_argv0 and not test_path_priority "
- "and not test_not_on_path")))))
- (add-after 'unpack 'patch-testsuite
- (lambda _
- ;; test_not_on_path() and test_path_priority() try to run a test
- ;; that loads jupyter_core, so we need GUIX_PYTHONPATH
- (substitute* "jupyter_core/tests/test_command.py"
- (("env = \\{'PATH': ''\\}")
- "env = {'PATH': '', 'PYTHONPATH':
os.environ['GUIX_PYTHONPATH']}")
- (("env = \\{'PATH': str\\(b\\)\\}")
- "env = {'PATH': str(b), 'PYTHONPATH':
os.environ['GUIX_PYTHONPATH']}"))))
+ (list
+ #:test-flags
+ '(list "-k"
+ (string-append
+ ;; XXX: These tests fail with "ModuleNotFoundError: No
+ ;; module named 'jupyter_core'".
+ "not test_argv0"
+ " and not test_path_priority "
+ " and not test_not_on_path"
+
+ ;; These fail with: An incompatible sibling of 'AsyncTornadoApp'
+ ;; is already instantiated as singleton: SyncTornadoApp
+ " and not test_async_app"
+ " and not test_async_tornado_app"
+
+ ;; Fails with a deprecation warning
+ " and not test_sync_tornado_run"))
+ #:phases
+ '(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ ;; Some tests write to $HOME.
+ (lambda _ (setenv "HOME" "/tmp")))
;; Migration is running whenever etc/jupyter exists, but the
;; Guix-managed directory will never contain any migratable IPython
;; config files and cannot be written to anyway, so just pretend we
@@ -12724,11 +12723,15 @@ container data structures in Python).")
(lambda* (#:key outputs #:allow-other-keys)
(mkdir-p (string-append (assoc-ref outputs "out") "/etc/jupyter"))
(invoke "touch"
- (string-append
- (assoc-ref outputs "out")
- "/etc/jupyter/migrated")))))))
- (propagated-inputs (list python-traitlets))
- (native-inputs (list python-pytest))
+ (string-append
+ (assoc-ref outputs "out")
+ "/etc/jupyter/migrated")))))))
+ (propagated-inputs (list python-platformdirs python-traitlets))
+ (native-inputs (list python-hatchling
+ python-pre-commit
+ python-pytest
+ python-pytest-cov
+ python-pytest-timeout))
;; This package provides the `jupyter` binary and thus also exports the
;; search paths.
(native-search-paths
- 52/361: gnu: python-pyproject-metadata: Disable two tests., (continued)
- 52/361: gnu: python-pyproject-metadata: Disable two tests., guix-commits, 2024/11/21
- 53/361: gnu: python-dbus-python: Add missing input., guix-commits, 2024/11/21
- 56/361: guix: toml: Fix parsing empty strings in arrays., guix-commits, 2024/11/21
- 74/361: gnu: Add python-notebook-shim., guix-commits, 2024/11/21
- 62/361: gnu: python-nbconvert: Add missing texlive inputs., guix-commits, 2024/11/21
- 66/361: gnu: Add python-jsonschema-specifications., guix-commits, 2024/11/21
- 58/361: gnu: python-pytest-xdist: Add setuptools and wheel., guix-commits, 2024/11/21
- 90/361: gnu: python-nbconvert: Use pyproject-build-system., guix-commits, 2024/11/21
- 87/361: gnu: python-jupyter-client: Set environment variable., guix-commits, 2024/11/21
- 73/361: gnu: Add python-pytest-jupyter., guix-commits, 2024/11/21
- 86/361: gnu: python-jupyter-core: Update to 5.7.2.,
guix-commits <=
- 80/361: gnu: python-jsonschema: Update to 4.22.0., guix-commits, 2024/11/21
- 67/361: gnu: Add python-rfc3986-validator., guix-commits, 2024/11/21
- 317/361: gnu: python-curio: Update to 1.6., guix-commits, 2024/11/21
- 341/361: gnu: python-pytest-localserver: Update to 0.9.0.post0., guix-commits, 2024/11/21
- 339/361: gnu: Add python-ephemeral-port-reserve., guix-commits, 2024/11/21
- 351/361: gnu: python-pytest-httpserver: Update to 1.1.0., guix-commits, 2024/11/21
- 92/361: gnu: python-jupyter-client: Update to 7.4.4., guix-commits, 2024/11/21
- 183/361: gnu: python-jaraco-classes: Move to pyproject-build-system., guix-commits, 2024/11/21
- 180/361: gnu: python-pytest-toolbox: Move to pyproject-build-system., guix-commits, 2024/11/21
- 175/361: gnu: python-sphinx-autodoc-typehints: Move to pyproject-build-system., guix-commits, 2024/11/21