void-packages/srcpkgs/python-jupyter_console/template

36 lines
1.1 KiB
Bash

# Template file for 'python-jupyter_console'
pkgname=python-jupyter_console
version=4.1.0
revision=1
noarch=yes
wrksrc="jupyter_console-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python-ipython>=4.0.0 python-ipython_ipykernel python-jupyter_client"
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=3f9703b632e38d68713fc2ea1f546edc4db2a8f925c94b6dd91a8d0c13816ce9
post_install() {
vbin build-3.4/scripts-3.4/jupyter-console jupyter-console3.4
vlicense COPYING.md LICENSE
}
python3.4-jupyter_console_package() {
noarch=yes
depends="python3.4-ipython>=4.0.0 python3.4-ipython_ipykernel python3.4-jupyter_client"
pycompile_version="3.4"
pycompile_module="jupyter_console"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/bin/jupyter-console3.4
vmove usr/lib/python3.4
vlicense COPYING.md LICENSE
}
}