void-packages/srcpkgs/python-jupyter_widgetsnbextension/template
2018-04-20 19:30:04 +02:00

45 lines
1.5 KiB
Bash

# Template file for 'python-jupyter_widgetsnbextension'
pkgname=python-jupyter_widgetsnbextension
version=3.2.1
revision=1
noarch=yes
wrksrc="widgetsnbextension-${version}"
build_style=python-module
pycompile_module="widgetsnbextension"
replaces="python-ipython_widgetsnbextension>=0"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-jupyter_widgetsnbextension-data>=${version}_${revision}
python-jupyter_notebook"
short_desc="Interactive HTML widgets for Jupyter notebooks (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://pypi.org/project/widgetsnbextension/"
license="BSD-3-Clause"
distfiles="${PYPI_SITE}/w/widgetsnbextension/widgetsnbextension-${version}.tar.gz"
checksum=5417789ee6064ff515fd10be24870660af3561c02d3d48b26f6f44285d0f70cc
pre_build() {
sed -i '/widgetsnbextension.json/d' setup.py
}
python-jupyter_widgetsnbextension-data_package() {
noarch=yes
short_desc+=" - data files"
conf_files="/etc/jupyter/nbconfig/notebook.d/widgetsnbextension.json"
pkg_install() {
vmkdir etc/jupyter/nbconfig/notebook.d
vinstall widgetsnbextension.json 644 etc/jupyter/nbconfig/notebook.d
vmove usr/share/jupyter
}
}
python3-jupyter_widgetsnbextension_package() {
noarch=yes
pycompile_module="widgetsnbextension"
replaces="python3-ipython_widgetsnbextension>=0"
depends="python-jupyter_widgetsnbextension-data>=${version}_${revision}
python3-jupyter_notebook"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}