35 lines
1.4 KiB
Bash
35 lines
1.4 KiB
Bash
# Template file for 'python3-jupyter_nbconvert'
|
|
pkgname=python3-jupyter_nbconvert
|
|
version=7.14.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="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
|
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=a7f8808fd4e082431673ac538400218dd45efd076fbeb07cc6e5aa5a3a4e949e
|
|
|
|
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
|
|
}
|