From d53a56f7c75725c13c4470a93ecae65f3231d9ec Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 22 Jan 2025 14:53:02 +0100 Subject: [PATCH] gnu: python-jupyter-sphinx: Update to 0.5.3. * gnu/packages/sphinx.scm (python-jupyter-sphinx): Update to 0.5.3. [build-system]: Use pyproject-build-system. [arguments]: Remove custom 'check phase; add phase 'ignore-warnings. [native-inputs]: Add python-hatchling and python-ipykernel. Change-Id: I94979e034fa45da898aed0dd37bcea4f37a5a5f8 --- gnu/packages/sphinx.scm | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index f656f4d5c028427251e44cdeb06018c750125a54..87b0251b4719cc7460bdb099e0a875deefe171cf 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -1,6 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2014 David Thompson -;;; Copyright © 2015, 2017, 2019, 2020, 2021, 2023, 2024 Ricardo Wurmus +;;; Copyright © 2015, 2017, 2019, 2020, 2021, 2023, 2024, 2025 Ricardo Wurmus ;;; Copyright © 2015, 2016, 2017 Leo Famulari ;;; Copyright © 2016 Hartmut Goebel ;;; Copyright © 2016-2019, 2022, 2023 Marius Bakke @@ -1317,7 +1317,7 @@ executed during the Sphinx build process.") (define-public python-jupyter-sphinx (package (name "python-jupyter-sphinx") - (version "0.3.2") + (version "0.5.3") (source (origin ;; Pypi tarball doesn't contain tests. @@ -1328,21 +1328,26 @@ executed during the Sphinx build process.") (file-name (git-file-name name version)) (sha256 (base32 - "0bsb17vzbgvrzvh87pi88b157hyigdwnf1lhrgvan03i2300h15c")))) - (build-system python-build-system) + "1l8skhjir7j9jr4xdmwzj5lk5w31jn21ydpcxvgr6adgnrdbgy53")))) + (build-system pyproject-build-system) (arguments (list - #:phases - #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "pytest"))))))) + #:test-flags + #~(list "-W" "ignore::DeprecationWarning") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'ignore-warnings + (lambda _ + (substitute* "pyproject.toml" + (("\"error\",") ""))))))) (propagated-inputs (list python-ipython python-ipywidgets python-nbconvert python-nbformat)) (native-inputs - (list python-pytest python-sphinx)) + (list python-hatchling + python-ipykernel + python-pytest + python-sphinx)) (home-page "https://github.com/jupyter/jupyter-sphinx/") (synopsis "Jupyter Sphinx Extensions") (description