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.2.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=9ed68ec7fe90a8672b43795b29ea91cc75ea355c83debc83ebd12171521ec274
alternatives="jupyter-nbconvert:jupyter-nbconvert:/usr/bin/jupyter-nbconvert2"
post_install() {
vlicense COPYING.md 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 COPYING.md 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}"
}