mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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>. [native-inputs]: Add python-pytest. [propagated-inputs]: Add python-six; remove python-pytest. Change-Id: I93aa282399eb52636ee5561b5d8fb7bb5b93f9e0 Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
parent
48c92942ab
commit
9be29a2462
1 changed files with 20 additions and 17 deletions
|
@ -1699,29 +1699,32 @@ 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")))))))
|
||||
(native-inputs (list python-pytest-cov python-sympy))
|
||||
(list
|
||||
#:test-flags
|
||||
'(list
|
||||
;; This test fails because of a mismatch in the output of LaTeX
|
||||
;; equation environments. Seems OK to skip.
|
||||
"--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
|
||||
python-pytest-cov
|
||||
python-sympy))
|
||||
(propagated-inputs
|
||||
(list python-coverage
|
||||
python-ipykernel
|
||||
python-jupyter-client
|
||||
python-nbformat
|
||||
python-pytest))
|
||||
python-six))
|
||||
(home-page "https://github.com/computationalmodelling/nbval")
|
||||
(synopsis "Pytest plugin to validate Jupyter notebooks")
|
||||
(description
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue