python-jupyter_nbconvert: rebuild for Python 3.5

Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
Alessio Sergi 2016-10-17 00:06:10 +02:00
parent 6d4f846557
commit 2ad3ac9a31
3 changed files with 19 additions and 13 deletions

View file

@ -1,2 +1,2 @@
To convert notebooks to formats other than HTML and markdown install
python3.4-Sphinx and/or pandoc.
python3-Sphinx and/or pandoc.

View file

@ -1,12 +1,11 @@
# Template file for 'python-jupyter_nbconvert'
pkgname=python-jupyter_nbconvert
version=4.2.0
revision=3
revision=4
noarch=yes
wrksrc="nbconvert-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
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"
@ -16,23 +15,29 @@ 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"
alternatives="jupyter-nbconvert:jupyter-nbconvert:/usr/bin/jupyter-nbconvert2"
post_install() {
vlicense COPYING.md LICENSE
}
python3.4-jupyter_nbconvert_package() {
python3-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"
depends="python3-mistune python3-Jinja2 python3-Pygments python3-traitlets
python3-jupyter_core python3-jupyter_nbformat python3-entrypoints"
pycompile_module="nbconvert"
short_desc="${short_desc/Python2/Python3.4}"
alternatives="jupyter-nbconvert:jupyter-nbconvert:/usr/bin/jupyter-nbconvert3.4"
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.4
vmove usr/lib/python3.4
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}"
}

View file

@ -0,0 +1 @@
python-jupyter_nbconvert