void-packages/srcpkgs/python-jupyter_nbconvert/template
Alessio Sergi 2ad3ac9a31 python-jupyter_nbconvert: rebuild for Python 3.5
Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
2016-10-17 00:06:10 +02:00

43 lines
1.5 KiB
Bash

# Template file for 'python-jupyter_nbconvert'
pkgname=python-jupyter_nbconvert
version=4.2.0
revision=4
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"
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
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"
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}"
}