void-packages/srcpkgs/python-jupyter_client/template
2016-06-09 23:45:30 +02:00

36 lines
1.2 KiB
Bash

# Template file for 'python-jupyter_client'
pkgname=python-jupyter_client
version=4.3.0
revision=1
noarch=yes
wrksrc="jupyter_client-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python-traitlets python-jupyter_core python-pyzmq"
pycompile_module="jupyter_client"
short_desc="Jupyter protocol client APIs (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/jupyter/jupyter_client"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/j/jupyter_client/jupyter_client-${version}.tar.gz"
checksum=70b2e88403835a1d54b83858783d9e5e5771fa4bb6f6904e0b5bb8cfde4b99dd
alternatives="jupyter-client:jupyter-kernelspec:/usr/bin/jupyter-kernelspec2.7"
post_install() {
vlicense COPYING.md LICENSE
}
python3.4-jupyter_client_package() {
noarch=yes
depends="python3.4-traitlets python3.4-jupyter_core python3.4-pyzmq"
pycompile_version="3.4"
pycompile_module="jupyter_client"
short_desc="${short_desc/Python2/Python3.4}"
alternatives="jupyter-client:jupyter-kernelspec:/usr/bin/jupyter-kernelspec3.4"
pkg_install() {
vmove usr/bin/jupyter-kernelspec3.4
vmove usr/lib/python3.4
vlicense COPYING.md LICENSE
}
}