[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70855] [PATCH 31/92] gnu: python-nbval: Move to pyproject-build-sys
From: |
Nicolas Graves |
Subject: |
[bug#70855] [PATCH 31/92] gnu: python-nbval: Move to pyproject-build-system. |
Date: |
Fri, 10 May 2024 00:53:26 +0200 |
* gnu/packages/python-check.scm (python-nbval):
[build-system]: Move to pyproject-build-system.
[arguments]: Move <#:phases> check phase replacement into proper
<#:test-flags>.
[propagated-inputs]: Add python-coverage which should have been
there.
Change-Id: I93aa282399eb52636ee5561b5d8fb7bb5b93f9e0
---
gnu/packages/python-check.scm | 48 ++++++++++++++++++-----------------
1 file changed, 25 insertions(+), 23 deletions(-)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 913fc00ffc5..8e2164a82db 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -1574,34 +1574,36 @@ (define-public python-nbval
(uri (pypi-uri "nbval" version))
(sha256
(base32 "0h3xrnw0mj1srigrx2rfnd73h8s0xjycclmjs0vx7qkfyqpcvvyg"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'check 'fix-test
- (lambda _
- ;; This test fails because of a mismatch in the output of LaTeX
- ;; equation environments. Seems OK to skip.
- (delete-file
- "tests/ipynb-test-samples/test-latex-pass-correctouput.ipynb")))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv" "-k"
- (string-append
- ;; This only works with Pytest < 5.
- "not nbdime_reporter"
- ;;
https://github.com/computationalmodelling/nbval/pull/148.
- " and not test_timeouts"
- ;; It seems the output format has changed; the
following
- ;; test fails with "Unexpected output fields from
- ;; running code: {'text/plain'}".
- " and not test_conf_ignore_stderr "))))))))
+ (list
+ #:test-flags
+ '(list
+ ;; This test fails because of a mismatch in the output of LaTeX
+ ;; equation environments. Seems OK to skip.
+ "--ignore=tests/ipynb-test-samples/test-latex-pass-correctouput.ipynb"
+ "-k" (string-append
+ ;; This only works with Pytest < 5.
+ "not nbdime_reporter"
+ ;; https://github.com/computationalmodelling/nbval/pull/148.
+ " and not test_timeouts"
+ ;; It seems the output format has changed; the following
+ ;; test fails with "Unexpected output fields from
+ ;; running code: {'text/plain'}".
+ " and not test_conf_ignore_stderr "))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'fix-test
+ (lambda _
+ ;; This test fails because of a mismatch in the output of LaTeX
+ ;; equation environments. Seems OK to skip.
+ (delete-file "tests/\
+ipynb-test-samples/test-latex-pass-correctouput.ipynb"))))))
(native-inputs
(list python-pytest python-pytest-cov python-sympy))
(propagated-inputs
(list python-ipykernel python-jupyter-client python-nbformat
- python-six))
+ python-six python-coverage))
(home-page "https://github.com/computationalmodelling/nbval")
(synopsis "Pytest plugin to validate Jupyter notebooks")
(description
--
2.41.0
- [bug#70855] [PATCH 05/92] gnu: python-codespell: Improve package style., (continued)
- [bug#70855] [PATCH 05/92] gnu: python-codespell: Improve package style., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 06/92] gnu: python-mutagen: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 08/92] gnu: python-zope-i18nmessageid: Update to 5.1.1., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 18/92] gnu: sshuttle: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 30/92] gnu: python-dateutil: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 29/92] gnu: python-pypujs: Improve package style., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 24/92] gnu: python-scikit-rf: Fix tests., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 19/92] gnu: python-apiron: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 32/92] gnu: python-asdf-astropy: Fix build., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 11/92] gnu: python-django-localflavor: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 31/92] gnu: python-nbval: Move to pyproject-build-system.,
Nicolas Graves <=
- [bug#70855] [PATCH 33/92] gnu: python-pytest-runner: Improve package style., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 38/92] gnu: behave: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 34/92] gnu: gunicorn: Update to 21.2.0., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 35/92] gnu: python-unidecode: Update to 1.3.8., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 37/92] gnu: python-tinycss: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 14/92] gnu: Add ghc-language-python., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 15/92] gnu: python-xcffib: Move to (gnu packages xorg)., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 20/92] gnu: python-alembic: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 22/92] gnu: conda: Reindent., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 27/92] gnu: dynaconf: Improve package style., Nicolas Graves, 2024/05/09