# Template file for 'python-jupyter_nbconvert'
pkgname=python-jupyter_nbconvert
version=4.1.0
revision=1
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"
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=e0296e45293dd127d028f678e3b6aba3f1db3283a134178bdb49eea402d4cf1c

post_install() {
	vbin build-3.4/scripts-3.4/jupyter-nbconvert jupyter-nbconvert3.4
	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"
	pycompile_version="3.4"
	pycompile_module="nbconvert"
	short_desc="${short_desc/Python2/Python3.4}"
	pkg_install() {
		vmove usr/bin/jupyter-nbconvert3.4
		vmove usr/lib/python3.4
		vlicense COPYING.md LICENSE
	}
}
