# Template file for 'python-jupyter_ipywidgets' pkgname=python-jupyter_ipywidgets version=7.2.1 revision=1 noarch=yes _widgetsnbextver=3.2.0 wrksrc="ipywidgets-${version}" build_style=python-module pycompile_module="ipywidgets" replaces="python-ipython_ipywidgets>=0" hostmakedepends="python-setuptools python3-setuptools" depends="python-jupyter_widgetsnbextension>=${_widgetsnbextver} python-ipython_ipykernel python-traitlets" short_desc="IPython widgets for the Jupyter notebook (Python2)" maintainer="Alessio Sergi " homepage="https://github.com/jupyter-widgets/ipywidgets" license="BSD-3-Clause" distfiles="${PYPI_SITE}/i/ipywidgets/ipywidgets-${version}.tar.gz" checksum=ab9869cda5af7ba449d8f707b29b7e97a7db97d6366805d6b733338f51096f54 post_install() { vlicense COPYING.md LICENSE } python3-jupyter_ipywidgets_package() { noarch=yes pycompile_module="ipywidgets" replaces="python3-ipython_ipywidgets>=0" depends="python3-jupyter_widgetsnbextension>=${_widgetsnbextver} python3-ipython_ipykernel python3-traitlets" short_desc="${short_desc/Python2/Python3}" pkg_install() { vmove usr/lib/python3* vlicense COPYING.md LICENSE } }