void-packages/srcpkgs/python-jupyter_console/template

44 lines
1.5 KiB
Bash

# Template file for 'python-jupyter_console'
pkgname=python-jupyter_console
version=5.1.0
revision=1
noarch=yes
wrksrc="jupyter_console-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-ipython python-ipython_ipykernel python-jupyter_client
python-prompt_toolkit python-Pygments"
pycompile_module="jupyter_console"
short_desc="Jupyter terminal console (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/jupyter/jupyter_console"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/j/jupyter_console/jupyter_console-${version}.tar.gz"
checksum=d0b4ae4dfe070be1e9d5690fa819328acffb5f37a8ef3baa1c7e3b77b443cfd7
alternatives="jupyter-console:jupyter-console:/usr/bin/jupyter-console2"
post_install() {
vlicense COPYING.md LICENSE
}
python3-jupyter_console_package() {
noarch=yes
depends="python3-ipython python3-ipython_ipykernel python3-jupyter_client
python3-prompt_toolkit python3-Pygments"
pycompile_module="jupyter_console"
replaces="python3.4-jupyter_console>=0"
short_desc="${short_desc/Python2/Python3}"
alternatives="jupyter-console:jupyter-console:/usr/bin/jupyter-console3"
pkg_install() {
vmove usr/bin/jupyter-console3
vmove usr/lib/python3*
vlicense COPYING.md LICENSE
}
}
python3.4-jupyter_console_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-jupyter_console>=${version}_${revision}"
}