void-packages/srcpkgs/python-ipython_ipywidgets/template

39 lines
1.2 KiB
Bash

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