void-packages/srcpkgs/python-jupyter_nbconvert/template

39 lines
1.4 KiB
Bash

# Template file for 'python-jupyter_nbconvert'
pkgname=python-jupyter_nbconvert
version=5.4.1
revision=2
archs=noarch
wrksrc="nbconvert-${version}"
build_style=python-module
pycompile_module="nbconvert"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-mistune python-Jinja2 python-Pygments python-traitlets
python-jupyter_core python-jupyter_nbformat python-entrypoints
python-testpath python-bleach python-pandocfilters python-defusedxml"
short_desc="Converting Jupyter notebooks (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/jupyter/nbconvert"
distfiles="${PYPI_SITE}/n/nbconvert/nbconvert-${version}.tar.gz"
checksum=302554a2e219bc0fc84f3edd3e79953f3767b46ab67626fdec16e38ba3f7efe4
alternatives="jupyter-nbconvert:jupyter-nbconvert:/usr/bin/jupyter-nbconvert2"
post_install() {
vlicense LICENSE
}
python3-jupyter_nbconvert_package() {
archs=noarch
depends="python3-mistune python3-Jinja2 python3-Pygments python3-traitlets
python3-jupyter_core python3-jupyter_nbformat python3-entrypoints
python3-testpath python3-bleach python3-pandocfilters python3-defusedxml"
pycompile_module="nbconvert"
short_desc="${short_desc/Python2/Python3}"
alternatives="jupyter-nbconvert:jupyter-nbconvert:/usr/bin/jupyter-nbconvert3"
pkg_install() {
vmove usr/bin/jupyter-nbconvert3
vmove usr/lib/python3*
vlicense LICENSE
}
}