diff --git a/srcpkgs/python3-jupyter_nbconvert/files/README.voidlinux b/srcpkgs/python3-jupyter_nbconvert/files/README.voidlinux deleted file mode 100644 index 5efba6bbb86..00000000000 --- a/srcpkgs/python3-jupyter_nbconvert/files/README.voidlinux +++ /dev/null @@ -1,2 +0,0 @@ -To convert notebooks to formats other than HTML and markdown install -python3-Sphinx and/or pandoc. diff --git a/srcpkgs/python3-jupyter_nbconvert/template b/srcpkgs/python3-jupyter_nbconvert/template index 1ded2af9674..a580377d0f0 100644 --- a/srcpkgs/python3-jupyter_nbconvert/template +++ b/srcpkgs/python3-jupyter_nbconvert/template @@ -1,26 +1,34 @@ # Template file for 'python3-jupyter_nbconvert' pkgname=python3-jupyter_nbconvert -version=6.4.5 -revision=3 -build_style=python3-module -# WebPDF export depends on unpackaged pyppeteer -make_check_args="-m not(network) -k not(test_webpdf_without_chromium)" -hostmakedepends="python3-setuptools" -depends="python3-mistune python3-Jinja2 python3-jupyterlab_pygments - python3-nbclient python3-jupyter_core python3-entrypoints python3-testpath - python3-bleach python3-pandocfilters python3-defusedxml - python3-BeautifulSoup4" -checkdepends="python3-pytest python3-ipython_ipykernel - python3-jupyter_ipywidgets python3-Pebble pandoc inkscape $depends" +version=7.9.2 +revision=1 +build_style=python3-pep517 +# these two tests require nbconvert.tests (not installed) +make_check_args="-k not((test_convert_full_qualified_name)or(test_post_processor))" +hostmakedepends="hatchling" +depends="python3-BeautifulSoup4 python3-bleach python3-defusedxml + python3-Jinja2 python3-jupyter_core python3-jupyterlab_pygments + python3-MarkupSafe python3-mistune python3-nbclient + python3-jupyter_nbformat python3-packaging python3-pandocfilters + python3-tinycss2" +checkdepends="$depends python3-pytest python3-jupyter_ipywidgets + asciidoc inkscape pandoc python3-flaky python3-PyQt5" short_desc="Converting Jupyter notebooks" -maintainer="Orphaned " +maintainer="Gonzalo TornarĂ­a " license="BSD-3-Clause" homepage="https://github.com/jupyter/nbconvert" +changelog="https://raw.githubusercontent.com/jupyter/nbconvert/main/CHANGELOG.md" distfiles="${PYPI_SITE}/n/nbconvert/nbconvert-${version}.tar.gz" -checksum=21163a8e2073c07109ca8f398836e45efdba2aacea68d6f75a8a545fef070d4e -conflicts="python-jupyter_nbconvert<=5.4.1_2" +checksum=e56cc7588acc4f93e2bb5a34ec69028e4941797b2bfaf6462f18a41d1cc258c9 + +pre_check() { + # templates must be in $JUPYTER_DATA_DIR/nbconvert/templates + # but they are in ${wrksrc}/share/templates + # fix with a symlink share/nbconvert -> share/. + [ -d share/nbconvert ] || ln -s . share/nbconvert + make_check_pre="env JUPYTER_DATA_DIR=${wrksrc}/share" +} post_install() { vlicense LICENSE - vdoc "${FILESDIR}/README.voidlinux" }