38 lines
1.2 KiB
Bash
38 lines
1.2 KiB
Bash
# Template file for 'python-jupyter_nbconvert'
|
|
pkgname=python-jupyter_nbconvert
|
|
version=4.2.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=55946d7522741294fcdd50799bd1777d16673ce721fecca0610cdb86749863c6
|
|
|
|
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
|
|
}
|
|
}
|