void-packages/srcpkgs/python-jupyter_client/template
2017-04-10 12:35:01 +02:00

41 lines
1.4 KiB
Bash

# Template file for 'python-jupyter_client'
pkgname=python-jupyter_client
version=5.0.1
revision=1
noarch=yes
wrksrc="jupyter_client-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-traitlets python-jupyter_core python-pyzmq python-dateutil"
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=1fe573880b5ca4469ed0bece098f4b910c373d349e12525e1ea3566f5a14536b
alternatives="jupyter-client:jupyter-kernelspec:/usr/bin/jupyter-kernelspec2"
post_install() {
vlicense COPYING.md LICENSE
}
python3-jupyter_client_package() {
noarch=yes
pycompile_module="jupyter_client"
replaces="python3.4-jupyter_client>=0"
short_desc="${short_desc/Python2/Python3}"
depends="python3-traitlets python3-jupyter_core python3-pyzmq python3-dateutil"
alternatives="jupyter-client:jupyter-kernelspec:/usr/bin/jupyter-kernelspec3"
pkg_install() {
vmove usr/bin/jupyter-kernelspec3
vmove usr/lib/python3*
vlicense COPYING.md LICENSE
}
}
python3.4-jupyter_client_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-jupyter_client>=${version}_${revision}"
}