[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/46: gnu: Add python-pytest-jupyter.
From: |
guix-commits |
Subject: |
11/46: gnu: Add python-pytest-jupyter. |
Date: |
Tue, 7 May 2024 18:33:59 -0400 (EDT) |
rekado pushed a commit to branch python-team
in repository guix.
commit d5979691e0e6f807a4399ed0fffbce1c5c605161
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 bf1b659f3b..c3f9b23a3b 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>
@@ -168,6 +168,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")
- 02/46: gnu: Add python-pep440., (continued)
- 02/46: gnu: Add python-pep440., guix-commits, 2024/05/07
- 03/46: gnu: Add python-referencing., guix-commits, 2024/05/07
- 06/46: gnu: Add python-isoduration., guix-commits, 2024/05/07
- 29/46: gnu: python-trio: Use pyproject-build-system., guix-commits, 2024/05/07
- 30/46: gnu: python-jupyter-client: Update to 7.4.4., guix-commits, 2024/05/07
- 35/46: gnu: Add python-jupyter-server-terminals., guix-commits, 2024/05/07
- 33/46: gnu: python-notebook: Update to 6.5.7., guix-commits, 2024/05/07
- 38/46: gnu: python-tabulate: Add Setuptools and Wheel., guix-commits, 2024/05/07
- 15/46: gnu: python-jedi: Update to 0.19.1., guix-commits, 2024/05/07
- 08/46: gnu: Add python-fqdn., guix-commits, 2024/05/07
- 11/46: gnu: Add python-pytest-jupyter.,
guix-commits <=
- 14/46: gnu: python-attrs: Update to 23.2.0., guix-commits, 2024/05/07
- 16/46: gnu: python-send2trash: Update to 1.8.2., guix-commits, 2024/05/07
- 17/46: gnu: python-argon2-cffi: Update to 21.1.0., guix-commits, 2024/05/07
- 18/46: gnu: python-jsonschema: Update to 4.22.0., guix-commits, 2024/05/07
- 19/46: gnu: python-websocket-client: Update to 1.8.0., guix-commits, 2024/05/07
- 20/46: gnu: python-prometheus-client: Update to 0.20.0., guix-commits, 2024/05/07
- 21/46: gnu: python-pytest-tornasync: Use Tornado 6., guix-commits, 2024/05/07
- 23/46: gnu: python-pyzmq: Use Tornado 6., guix-commits, 2024/05/07
- 24/46: gnu: python-jupyter-core: Update to 5.7.2., guix-commits, 2024/05/07
- 26/46: gnu: python-ipykernel: Set environment variable., guix-commits, 2024/05/07