void-packages/srcpkgs/python-jupyter_nbformat/template

37 lines
1.1 KiB
Bash

# Template file for 'python-jupyter_nbformat'
pkgname=python-jupyter_nbformat
version=4.0.1
revision=1
noarch=yes
wrksrc="nbformat-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-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=5261c957589b9dfcd387c338d59375162ba9ca82c69e378961a1f4e641285db5
post_install() {
vbin build-3.4/scripts-3.4/jupyter-trust jupyter-trust3.4
vlicense COPYING.md LICENSE
}
python3.4-jupyter_nbformat_package() {
noarch=yes
depends="python3.4-jsonschema python3.4-ipython_genutils python3.4-traitlets
python3.4-jupyter_core"
pycompile_version="3.4"
pycompile_module="nbformat"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/bin/jupyter-trust3.4
vmove usr/lib/python3.4
vlicense COPYING.md LICENSE
}
}