[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
98/361: gnu: python-jupyter-server: Update to 2.14.0.
From: |
guix-commits |
Subject: |
98/361: gnu: python-jupyter-server: Update to 2.14.0. |
Date: |
Fri, 22 Nov 2024 06:00:20 -0500 (EST) |
andreas pushed a commit to branch python-team
in repository guix.
commit c5796cc5267e02621ce2e9be67a53b9f3bb0a3f1
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue May 7 22:26:40 2024 +0200
gnu: python-jupyter-server: Update to 2.14.0.
* gnu/packages/jupyter.scm (python-jupyter-server): Update to 2.14.0.
[build-system]: Use pyproject-build-system.
[arguments]: Remove custom 'check phase; use #:test-flags instead; add
'ignore-deprecation-warnings phase; add 'pre-check phase.
[propagated-inputs]: Add python-jupyter-events,
python-jupyter-server-terminals, python-overrides, and python-packaging.
[native-inputs]: Remove python-coverage, python-pytest-cov,
python-pytest-mock, and python-pytest-tornasync; add python-flaky,
python-hatchling, python-hatch-jupyter-builder, python-pytest-jupyter, and
python-pytest-timeout.
Change-Id: Icebce3bc44b83bcd4cc60186b71d9161d13695da
---
gnu/packages/jupyter.scm | 65 +++++++++++++++++++++++++++---------------------
1 file changed, 37 insertions(+), 28 deletions(-)
diff --git a/gnu/packages/jupyter.scm b/gnu/packages/jupyter.scm
index 71dea7021e..5499e09bef 100644
--- a/gnu/packages/jupyter.scm
+++ b/gnu/packages/jupyter.scm
@@ -514,45 +514,53 @@ JavaScript build steps.")
(define-public python-jupyter-server
(package
(name "python-jupyter-server")
- (version "1.16.0")
+ (version "2.14.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jupyter_server" version))
(sha256
(base32
- "0fj6l34m6vk3yic87isz9bzgg4qsbr285x1faamf512bsrxghmn7"))))
- (build-system python-build-system)
+ "0xz69anflhib514lgpdrs0ppmbwp13zbg4vwzls3820jlp7594b5"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key inputs outputs tests? #:allow-other-keys)
- (when tests?
- (add-installed-pythonpath inputs outputs)
- (let ((home (string-append (getcwd) "/guix-home")))
- (setenv "HOME" home))
- ;; Add jupyter-server executable to PATH.
- (setenv "PATH"
- (string-append (assoc-ref outputs "out") "/bin:"
- (getenv "PATH")))
- (with-directory-excursion "jupyter_server"
- ;; The pytest fixtures are only loaded when the file is
- ;; called conftest.py.
- (rename-file "pytest_plugin.py" "conftest.py")
- (invoke "pytest" "-vv"
- ;; Fails with internal server error
- "-k" "not test_list_formats"
- ;; Integration tests require a server.
- "-m" "not integration_test"))))))))
+ (list
+ #:test-flags
+ ;; Integration tests require a server.
+ '(list "-m" "not integration_test"
+ ;; This test fails just like the shutil test in
+ ;; python-jupyter-events fails. Odd, that.
+ "-k" "not test_server_extension_list")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'ignore-deprecation-warnings
+ (lambda _
+ (substitute* "pyproject.toml"
+ ((" \"ignore:datetime.*" m)
+ (string-append m "\n\"ignore:zmq.eventloop.ioloop is
deprecated:DeprecationWarning\","
+ "\n\"ignore:There is no current event
loop:DeprecationWarning\","
+ "\n\"ignore:unclosed event
loop:ResourceWarning\","
+ ;; From tornado
+ "\n\"ignore:unclosed
<socket.socket:ResourceWarning\",")))))
+ (add-before 'check 'pre-check
+ (lambda _
+ (let ((home (string-append (getcwd) "/guix-home")))
+ (setenv "HOME" home))
+ ;; Add jupyter-server executable to PATH.
+ (setenv "PATH"
+ (string-append #$output "/bin:" (getenv "PATH"))))))))
(propagated-inputs
(list python-anyio
python-argon2-cffi
python-jinja2
python-jupyter-client
python-jupyter-core
+ python-jupyter-events
+ python-jupyter-server-terminals
python-nbconvert
python-nbformat
+ python-overrides
+ python-packaging
python-prometheus-client
python-pyzmq
python-send2trash
@@ -561,13 +569,14 @@ JavaScript build steps.")
python-traitlets
python-websocket-client))
(native-inputs
- (list python-coverage
+ (list python-flaky
+ python-hatchling
+ python-hatch-jupyter-builder
python-ipykernel
python-pytest
python-pytest-console-scripts
- python-pytest-cov
- python-pytest-mock
- python-pytest-tornasync
+ python-pytest-jupyter
+ python-pytest-timeout
python-requests))
(home-page "https://jupyter.org")
(synopsis "Core services, APIs, and REST endpoints for Jupyter web
applications")
- 59/361: gnu: python-jinja2: Add setuptools and wheel., (continued)
- 59/361: gnu: python-jinja2: Add setuptools and wheel., guix-commits, 2024/11/22
- 60/361: gnu: python-openpyxl: Add Setuptools and Wheel., guix-commits, 2024/11/22
- 63/361: gnu: python-rich: Remove python-ipywidgets., guix-commits, 2024/11/22
- 74/361: gnu: Add python-notebook-shim., guix-commits, 2024/11/22
- 77/361: gnu: python-jedi: Update to 0.19.1., guix-commits, 2024/11/22
- 65/361: gnu: Add python-referencing., guix-commits, 2024/11/22
- 87/361: gnu: python-jupyter-client: Set environment variable., guix-commits, 2024/11/22
- 90/361: gnu: python-nbconvert: Use pyproject-build-system., guix-commits, 2024/11/22
- 83/361: gnu: python-pytest-tornasync: Use Tornado 6., guix-commits, 2024/11/22
- 86/361: gnu: python-jupyter-core: Update to 5.7.2., guix-commits, 2024/11/22
- 98/361: gnu: python-jupyter-server: Update to 2.14.0.,
guix-commits <=
- 112/361: gnu: python-json5: Update to 0.9.25., guix-commits, 2024/11/22
- 115/361: gnu: python-myst-parser: Update to 3.0.1., guix-commits, 2024/11/22
- 133/361: gnu: python-ipykernel: Update to 6.29.4., guix-commits, 2024/11/22
- 148/361: gnu: Add xcffibgen., guix-commits, 2024/11/22
- 149/361: gnu: Add ghc-language-python., guix-commits, 2024/11/22
- 132/361: gnu: Add python-comm., guix-commits, 2024/11/22
- 152/361: gnu: qtile: Improve package style., guix-commits, 2024/11/22
- 22/361: gnu: python-mdit-py-plugins: Update to 0.4.0., guix-commits, 2024/11/22
- 17/361: gnu: python-sphinx: Update to 6.2.1., guix-commits, 2024/11/22
- 21/361: gnu: python-markdown-it-py: Update to 3.0.0., guix-commits, 2024/11/22