gnu: python-sphinx-gallery: Update to 0.14.0.
* gnu/packages/sphinx.scm (python-sphinx-gallery): Update to 0.14.0. [build-system]: Use pyproject-build-system. [arguments]: Remove custom phases; add custom build phase 'delete-webp-example; move test flags to #:test-flags. [propagated-inputs]: Add python-jupyterlite-sphinx. Change-Id: I58f4b952fe5a2bf942d77813a8a2eeef2e4750b6
parent
617bca2ab0
commit
0618aaba01
|
@ -49,6 +49,7 @@
|
||||||
#:use-module (gnu packages graphviz)
|
#:use-module (gnu packages graphviz)
|
||||||
#:use-module (gnu packages image)
|
#:use-module (gnu packages image)
|
||||||
#:use-module (gnu packages imagemagick)
|
#:use-module (gnu packages imagemagick)
|
||||||
|
#:use-module (gnu packages jupyter)
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
#:use-module (gnu packages python-build)
|
#:use-module (gnu packages python-build)
|
||||||
#:use-module (gnu packages python-check)
|
#:use-module (gnu packages python-check)
|
||||||
|
@ -528,35 +529,42 @@ Sphinx documentation into your web application. It provides tools to
|
||||||
integrate Sphinx documents in web templates and to handle searches.")
|
integrate Sphinx documents in web templates and to handle searches.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
|
|
||||||
(define-public python-sphinx-gallery
|
(define-public python-sphinx-gallery
|
||||||
(package
|
(package
|
||||||
(name "python-sphinx-gallery")
|
(name "python-sphinx-gallery")
|
||||||
(version "0.10.1")
|
(version "0.14.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "sphinx-gallery" version))
|
(uri (pypi-uri "sphinx-gallery" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1r07sa34511fbnwi2s32q00qdyv5d23d05imyfgnh2ivhfq34gwm"))))
|
(base32 "1hj380d5bjhbzxmhjw8f8b71jy1wk8crad0g3n750m990fphljia"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:test-flags
|
||||||
(add-before 'check 'writable-files-for-tests
|
'(list "--pyargs" "sphinx_gallery" "-k"
|
||||||
(lambda _
|
|
||||||
(for-each make-file-writable (find-files "."))))
|
|
||||||
(replace 'check
|
|
||||||
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
|
||||||
(when tests?
|
|
||||||
(add-installed-pythonpath inputs outputs)
|
|
||||||
(invoke "python" "-m" "pytest" "--pyargs" "sphinx_gallery" "-k"
|
|
||||||
(string-append
|
(string-append
|
||||||
;; These tests require online data.
|
;; These tests require online data.
|
||||||
"not test_embed_code_links_get_data"
|
"not test_embed_code_links_get_data"
|
||||||
" and not test_run_sphinx"
|
" and not test_run_sphinx"
|
||||||
|
;; Requires webp support
|
||||||
|
" and not test_image_formats"
|
||||||
|
;; Needs graphviz
|
||||||
|
" and not test_rebuild"
|
||||||
|
;; Fails because we've deleted an example file, so the numbers
|
||||||
|
;; don't match.
|
||||||
|
" and not test_junit"
|
||||||
;; AssertionError.
|
;; AssertionError.
|
||||||
" and not test_embed_links_and_styles"))))))))
|
" and not test_embed_links_and_styles"))
|
||||||
|
#:phases
|
||||||
|
'(modify-phases %standard-phases
|
||||||
|
;; TODO: Our version of matplotlib does not support webp.
|
||||||
|
(add-after 'unpack 'delete-webp-example
|
||||||
|
(lambda _
|
||||||
|
(delete-file "sphinx_gallery/tests/tinybuild/examples/plot_webp.py"))))))
|
||||||
|
(propagated-inputs
|
||||||
|
(list python-jupyterlite-sphinx))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-joblib
|
(list python-joblib
|
||||||
python-matplotlib
|
python-matplotlib
|
||||||
|
|
Reference in New Issue