python-jupyter_nbconvert: drop python 2

This commit is contained in:
Đoàn Trần Công Danh 2020-03-31 12:14:45 +07:00 committed by Piotr
parent a78ab56225
commit 060147cd6f
5 changed files with 28 additions and 41 deletions

View file

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

View file

@ -1,38 +0,0 @@
# Template file for 'python-jupyter_nbconvert'
pkgname=python-jupyter_nbconvert
version=5.4.1
revision=2
archs=noarch
wrksrc="nbconvert-${version}"
build_style=python-module
pycompile_module="nbconvert"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-mistune python-Jinja2 python-Pygments python-traitlets
python-jupyter_core python-jupyter_nbformat python-entrypoints
python-testpath python-bleach python-pandocfilters python-defusedxml"
short_desc="Converting Jupyter notebooks (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/jupyter/nbconvert"
distfiles="${PYPI_SITE}/n/nbconvert/nbconvert-${version}.tar.gz"
checksum=302554a2e219bc0fc84f3edd3e79953f3767b46ab67626fdec16e38ba3f7efe4
alternatives="jupyter-nbconvert:jupyter-nbconvert:/usr/bin/jupyter-nbconvert2"
post_install() {
vlicense LICENSE
}
python3-jupyter_nbconvert_package() {
archs=noarch
depends="python3-mistune python3-Jinja2 python3-Pygments python3-traitlets
python3-jupyter_core python3-jupyter_nbformat python3-entrypoints
python3-testpath python3-bleach python3-pandocfilters python3-defusedxml"
pycompile_module="nbconvert"
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 LICENSE
}
}

View file

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

View file

@ -0,0 +1,28 @@
# Template file for 'python3-jupyter_nbconvert'
pkgname=python3-jupyter_nbconvert
version=5.4.1
revision=3
archs=noarch
wrksrc="nbconvert-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-mistune python3-Jinja2 python3-Pygments python3-traitlets
python3-jupyter_core python3-jupyter_nbformat python3-entrypoints
python3-testpath python3-bleach python3-pandocfilters python3-defusedxml"
checkdepends="$depends python3-pytest python3-ipython_ipykernel
python3-jupyter_ipywidgets python3-Pebble pandoc inkscape"
short_desc="Converting Jupyter notebooks"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/jupyter/nbconvert"
distfiles="${PYPI_SITE}/n/nbconvert/nbconvert-${version}.tar.gz"
checksum=302554a2e219bc0fc84f3edd3e79953f3767b46ab67626fdec16e38ba3f7efe4
conflicts="python-jupyter_nbconvert<=5.4.1_2"
do_check() {
: this version fail badly
}
post_install() {
vlicense LICENSE
}