# Template file for 'python-jupyter_nbconvert' pkgname=python-jupyter_nbconvert version=4.2.0 revision=3 noarch=yes wrksrc="nbconvert-${version}" build_style=python-module python_versions="2.7 3.4" hostmakedepends="python-setuptools python3.4-setuptools" depends="python-mistune python-Jinja2 python-Pygments python-traitlets python-jupyter_core python-jupyter_nbformat python-entrypoints" pycompile_module="nbconvert" short_desc="Converting Jupyter notebooks (Python2)" maintainer="Alessio Sergi " homepage="https://github.com/jupyter/nbconvert" license="3-clause-BSD" distfiles="${PYPI_SITE}/n/nbconvert/nbconvert-${version}.tar.gz" checksum=55946d7522741294fcdd50799bd1777d16673ce721fecca0610cdb86749863c6 alternatives="jupyter-nbconvert:jupyter-nbconvert:/usr/bin/jupyter-nbconvert2.7" post_install() { vlicense COPYING.md LICENSE } python3.4-jupyter_nbconvert_package() { noarch=yes depends="python3.4-mistune python3.4-Jinja2 python3.4-Pygments python3.4-traitlets python3.4-jupyter_core python3.4-jupyter_nbformat python3.4-entrypoints" pycompile_version="3.4" pycompile_module="nbconvert" short_desc="${short_desc/Python2/Python3.4}" alternatives="jupyter-nbconvert:jupyter-nbconvert:/usr/bin/jupyter-nbconvert3.4" pkg_install() { vmove usr/bin/jupyter-nbconvert3.4 vmove usr/lib/python3.4 vlicense COPYING.md LICENSE } }