void-packages/srcpkgs/python-jupyter_nbformat/template

43 lines
1.4 KiB
Bash

# Template file for 'python-jupyter_nbformat'
pkgname=python-jupyter_nbformat
version=4.4.0
revision=2
noarch=yes
wrksrc="nbformat-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-jsonschema python-ipython_genutils python-traitlets python-jupyter_core"
pycompile_module="nbformat"
short_desc="The Jupyter notebook format (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/jupyter/nbformat"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/n/nbformat/nbformat-${version}.tar.gz"
checksum=f7494ef0df60766b7cabe0a3651556345a963b74dbc16bc7c18479041170d402
alternatives="jupyter-nbformat:jupyter-trust:/usr/bin/jupyter-trust2"
post_install() {
vlicense COPYING.md LICENSE
}
python3-jupyter_nbformat_package() {
noarch=yes
depends="python3-jsonschema python3-ipython_genutils python3-traitlets
python3-jupyter_core"
pycompile_module="nbformat"
replaces="python3.4-jupyter_nbformat>=0"
short_desc="${short_desc/Python2/Python3}"
alternatives="jupyter-nbformat:jupyter-trust:/usr/bin/jupyter-trust3"
pkg_install() {
vmove usr/bin/jupyter-trust3
vmove usr/lib/python3*
vlicense COPYING.md LICENSE
}
}
python3.4-jupyter_nbformat_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-jupyter_nbformat>=${version}_${revision}"
}