[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
73/222: gnu: Add python-pytest-jupyter.
From: |
guix-commits |
Subject: |
73/222: gnu: Add python-pytest-jupyter. |
Date: |
Fri, 1 Nov 2024 10:56:26 -0400 (EDT) |
sharlatan pushed a commit to branch python-team
in repository guix.
commit 60a12d852ea8d11abbe641bbb1afa193535d3ec4
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")
- 36/222: gnu: python-readme-renderer: Adjust package style., (continued)
- 36/222: gnu: python-readme-renderer: Adjust package style., guix-commits, 2024/11/01
- 55/222: gnu: python-pyls-black: Add missing inputs., guix-commits, 2024/11/01
- 51/222: gnu: python-partd: Add missing input., guix-commits, 2024/11/01
- 03/222: gnu: python-sphinx-alabaster-theme: Update to 0.7.13., guix-commits, 2024/11/01
- 26/222: gnu: python-myst-parser: Relax some requirements., guix-commits, 2024/11/01
- 31/222: gnu: python-prompt-toolkit: Update to 3.0.43., guix-commits, 2024/11/01
- 29/222: gnu: python-argcomplete: Update to 3.2.2., guix-commits, 2024/11/01
- 56/222: guix: toml: Fix parsing empty strings in arrays., guix-commits, 2024/11/01
- 27/222: gnu: python-lightning-cloud: Disable tests., guix-commits, 2024/11/01
- 57/222: gnu: snakemake-6: Add Setuptools and Wheel., guix-commits, 2024/11/01
- 73/222: gnu: Add python-pytest-jupyter.,
guix-commits <=
- 62/222: gnu: python-nbconvert: Add missing texlive inputs., guix-commits, 2024/11/01
- 76/222: gnu: python-attrs: Update to 23.2.0., guix-commits, 2024/11/01
- 78/222: gnu: python-send2trash: Update to 1.8.2., guix-commits, 2024/11/01
- 83/222: gnu: python-pytest-tornasync: Use Tornado 6., guix-commits, 2024/11/01
- 84/222: gnu: python-jupyter-kernel-mgmt: Use Tornado 6., guix-commits, 2024/11/01
- 85/222: gnu: python-pyzmq: Use Tornado 6., guix-commits, 2024/11/01
- 87/222: gnu: python-jupyter-client: Set environment variable., guix-commits, 2024/11/01
- 88/222: gnu: python-ipykernel: Set environment variable., guix-commits, 2024/11/01
- 90/222: gnu: python-nbconvert: Use pyproject-build-system., guix-commits, 2024/11/01
- 91/222: gnu: python-trio: Use pyproject-build-system., guix-commits, 2024/11/01