[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
73/361: gnu: Add python-pytest-jupyter.
From: |
guix-commits |
Subject: |
73/361: gnu: Add python-pytest-jupyter. |
Date: |
Thu, 21 Nov 2024 06:28:52 -0500 (EST) |
sharlatan pushed a commit to branch python-team
in repository guix.
commit c38a8de36cc38a7a89a7e40b068edebfde2aabc9
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon May 6 22:45:14 2024 +0200
gnu: Add python-pytest-jupyter.
* gnu/packages/jupyter.scm (python-pytest-jupyter): New variable.
Change-Id: Id8d59a3981c5c46adbfee7d369692cba32e27d70
---
gnu/packages/jupyter.scm | 48 +++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 47 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/jupyter.scm b/gnu/packages/jupyter.scm
index c485e68b9c..68b17e7e81 100644
--- a/gnu/packages/jupyter.scm
+++ b/gnu/packages/jupyter.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019, 2022 Ludovic Courtès <ludo@gnu.org>
-;;; Copyright © 2021, 2022, 2023 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2021-2024 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2021 Hugo Lecomte <hugo.lecomte@inria.fr>
;;; Copyright © 2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
@@ -169,6 +169,52 @@ tests kernels for successful code execution and
conformance with the
Messaging Protocol}.")
(license license:bsd-3)))
+(define-public python-pytest-jupyter
+ (package
+ (name "python-pytest-jupyter")
+ (version "0.10.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest_jupyter" version))
+ (sha256
+ (base32 "114y9py29j6p2iymhc3vj55x65gg1ncbhwal5mads0g2z7p59pq0"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ ;; This requires python-jupyter-server, which itself requires this
+ ;; package.
+ '(list "--ignore=tests/test_jupyter_server.py")
+ #:phases
+ '(modify-phases %standard-phases
+ ;; The jupyter_server tests requires python-jupyter-server, which
+ ;; itself requires this package.
+ (add-after 'unpack 'disable-tests
+ (lambda _
+ (substitute* "tests/conftest.py"
+ (("\"pytest_jupyter.jupyter_server\",") ""))))
+ ;; Some tests require a writable HOME
+ (add-before 'check 'set-HOME
+ (lambda _ (setenv "HOME" "/tmp")))
+ (add-after 'unpack 'ignore-deprecation-warnings
+ (lambda _
+ (substitute* "pyproject.toml"
+ ((" \"module:datetime.*" m)
+ (string-append m "\n\"ignore:zmq.eventloop.ioloop is
deprecated:DeprecationWarning\","))))))))
+ (propagated-inputs (list python-jupyter-core python-nbformat))
+ (native-inputs (list python-hatchling
+ python-ipykernel
+ python-pytest
+ python-pytest-timeout
+ python-tornado-6))
+ (home-page "https://jupyter.org")
+ (synopsis "Pytest plugin for testing Jupyter libraries and extensions.")
+ (description
+ "This package provides a pytest plugin for testing Jupyter libraries and
+extensions.")
+ (license license:bsd-4)))
+
(define-public xeus
(package
(name "xeus")
- 45/361: gnu: python-mistletoe: Add missing inputs., (continued)
- 45/361: gnu: python-mistletoe: Add missing inputs., guix-commits, 2024/11/21
- 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 <=
- 86/361: gnu: python-jupyter-core: Update to 5.7.2., guix-commits, 2024/11/21
- 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