void-packages/srcpkgs/python-jupyter_qtconsole/template

39 lines
1.3 KiB
Bash

# Template file for 'python-jupyter_qtconsole'
pkgname=python-jupyter_qtconsole
version=4.4.2
revision=1
archs=noarch
wrksrc="qtconsole-${version}"
build_style=python-module
pycompile_module="qtconsole"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-traitlets python-jupyter_core python-jupyter_client
python-Pygments python-ipython_ipykernel python-ipython_genutils
python-PyQt5-svg"
short_desc="Jupyter Qt console (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/jupyter/qtconsole"
license="BSD-3-Clause"
distfiles="${PYPI_SITE}/q/qtconsole/qtconsole-${version}.tar.gz"
checksum=faa529167b22412ea51ea44f20728a602415734d2229721d1194cea47cb730fa
alternatives="jupyter-qtconsole:jupyter-qtconsole:/usr/bin/jupyter-qtconsole2"
post_install() {
vlicense LICENSE
}
python3-jupyter_qtconsole_package() {
archs=noarch
depends="python3-traitlets python3-jupyter_core python3-jupyter_client
python3-Pygments python3-ipython_ipykernel python3-ipython_genutils
python3-PyQt5-svg"
pycompile_module="qtconsole"
short_desc="${short_desc/Python2/Python3}"
alternatives="jupyter-qtconsole:jupyter-qtconsole:/usr/bin/jupyter-qtconsole3"
pkg_install() {
vmove usr/bin/jupyter-qtconsole3
vmove usr/lib/python3*
vlicense LICENSE
}
}