void-packages/srcpkgs/python-jupyter_nbconvert/template

46 lines
1.6 KiB
Bash

# Template file for 'python-jupyter_nbconvert'
pkgname=python-jupyter_nbconvert
version=5.3.1
revision=1
noarch=yes
wrksrc="nbconvert-${version}"
build_style=python-module
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"
pycompile_module="nbconvert"
short_desc="Converting Jupyter notebooks (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/jupyter/nbconvert"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/n/nbconvert/nbconvert-${version}.tar.gz"
checksum=12b1a4671d4463ab73af6e4cbcc965b62254e05d182cd54995dda0d0ef9e2db9
alternatives="jupyter-nbconvert:jupyter-nbconvert:/usr/bin/jupyter-nbconvert2"
post_install() {
vlicense LICENSE
}
python3-jupyter_nbconvert_package() {
noarch=yes
depends="python3-mistune python3-Jinja2 python3-Pygments python3-traitlets
python3-jupyter_core python3-jupyter_nbformat python3-entrypoints
python3-testpath python3-bleach python3-pandocfilters"
pycompile_module="nbconvert"
replaces="python3.4-jupyter_nbconvert>=0"
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
}
}
python3.4-jupyter_nbconvert_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-jupyter_nbconvert>=${version}_${revision}"
}