35 lines
1.4 KiB
Bash
35 lines
1.4 KiB
Bash
# Template file for 'python3-jupyter_nbconvert'
|
|
pkgname=python3-jupyter_nbconvert
|
|
version=7.11.0
|
|
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=abedc01cf543177ffde0bfc2a69726d5a478f6af10a332fc1bf29fcb4f0cf000
|
|
|
|
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
|
|
}
|