diff options
author | Nicolas Graves <ngraves@ngraves.fr> | 2024-05-10 00:53:26 +0200 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-10-14 23:53:16 +0100 |
commit | 4be52fe3893be40a55e6c8369206d432fe578d58 (patch) | |
tree | d740066594a41ce4022fecd1bf25738ffaeff5c0 | |
parent | bbc7c0301ae4cdd470af22c288421d7310ccb06b (diff) |
gnu: python-nbval: Move to pyproject-build-system.
* gnu/packages/python-check.scm (python-nbval):
[build-system]: Move to pyproject-build-system.
[arguments]: Move <#:phases> check phase replacement into proper
<#:test-flags>.
Change-Id: I93aa282399eb52636ee5561b5d8fb7bb5b93f9e0
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
-rw-r--r-- | gnu/packages/python-check.scm | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 51b39ae759..b7ae55e608 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -1625,22 +1625,21 @@ notebooks.") (uri (pypi-uri "nbval" version)) (sha256 (base32 "154h6xpf9h6spgg3ax6k79fd40j197ipwnfjmf5rc2kvc2bmgjbp")))) - (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" - ;; nbdime forms a dependency cycle - "--ignore=tests/test_nbdime_reporter.py"))))))) + (list + #:test-flags + #~(list + ;; nbdime forms a dependency cycle + "--ignore=tests/test_nbdime_reporter.py") + #: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-cov python-sympy)) (propagated-inputs (list python-coverage |