[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
73/474: gnu: Add python-pytest-jupyter.
From: |
guix-commits |
Subject: |
73/474: gnu: Add python-pytest-jupyter. |
Date: |
Sat, 30 Nov 2024 18:19:53 -0500 (EST) |
sharlatan pushed a commit to branch python-team
in repository guix.
commit c53f8b7ea187803b20151dfbda5ae272498c178e
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")
- 265/474: gnu: python-nose-exclude: Adjust iputs., (continued)
- 265/474: gnu: python-nose-exclude: Adjust iputs., guix-commits, 2024/11/30
- 270/474: gnu: python-pytest-virtualenv: Update to 1.8.0., guix-commits, 2024/11/30
- 271/474: gnu: python-robotframework-datadriver: Update to 1.11.2., guix-commits, 2024/11/30
- 272/474: gnu: python-scikit-fem: Update to 10.0.2., guix-commits, 2024/11/30
- 291/474: gnu: Add python-rich-tables., guix-commits, 2024/11/30
- 303/474: gnu: python-pexpect: Improve package style., guix-commits, 2024/11/30
- 284/474: gnu: Add python-sphinx-design., guix-commits, 2024/11/30
- 41/474: gnu: python-pycurl: Add missing inputs., guix-commits, 2024/11/30
- 48/474: gnu: python-joblib: Add missing inputs., guix-commits, 2024/11/30
- 37/474: gnu: python-eventlet: Update to 0.35.2., guix-commits, 2024/11/30
- 73/474: gnu: Add python-pytest-jupyter.,
guix-commits <=
- 75/474: gnu: Add python-nbclassic., guix-commits, 2024/11/30
- 103/474: gnu: python-lazy-object-proxy: Update to 1.10.0., guix-commits, 2024/11/30
- 104/474: gnu: python-requests: Update to 2.31.0., guix-commits, 2024/11/30
- 106/474: gnu: Add python-pathable., guix-commits, 2024/11/30
- 108/474: gnu: python-openapi-spec-validator: Update to 0.7.1., guix-commits, 2024/11/30
- 112/474: gnu: python-json5: Update to 0.9.25., guix-commits, 2024/11/30
- 115/474: gnu: python-myst-parser: Update to 3.0.1., guix-commits, 2024/11/30
- 109/474: gnu: python-cattrs: Update to 23.2.3., guix-commits, 2024/11/30
- 205/474: gnu: python-zope-i18nmessageid: Move to pyproject-build-system., guix-commits, 2024/11/30
- 344/474: gnu: python-pandas-2: Update to 2.2.3., guix-commits, 2024/11/30