void-packages/srcpkgs/python-jupyter_nbconvert/template
2019-03-01 12:04:45 -03:00

38 lines
1.4 KiB
Bash

# Template file for 'python-jupyter_nbconvert'
pkgname=python-jupyter_nbconvert
version=5.4.0
revision=1
archs=noarch
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 python-defusedxml"
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=a8a2749f972592aa9250db975304af6b7337f32337e523a2c995cc9e12c07807
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
}
}