void-packages/srcpkgs/python-ipython_ipykernel/template
2016-12-03 10:23:43 +01:00

38 lines
1.2 KiB
Bash

# Template file for 'python-ipython_ipykernel'
pkgname=python-ipython_ipykernel
version=4.5.2
revision=1
noarch=yes
wrksrc="ipykernel-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-ipython python-traitlets python-jupyter_client"
pycompile_module="ipykernel"
short_desc="IPython kernel for Jupyter (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/ipython/ipykernel"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/i/ipykernel/ipykernel-${version}.tar.gz"
checksum=5a54f25f0e6c8ee74c362c23f9a95e10e74c6b7f5ef42059c861ff6f26d89462
post_install() {
vlicense COPYING.md LICENSE
}
python3-ipython_ipykernel_package() {
noarch=yes
depends="python3-ipython python3-traitlets python3-jupyter_client"
replaces="python3.4-ipython_ipykernel>=0"
pycompile_module="ipykernel"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense COPYING.md LICENSE
}
}
python3.4-ipython_ipykernel_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-ipython_ipykernel>=${version}_${revision}"
}