43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
# Template file for 'python-jupyter_core'
|
|
pkgname=python-jupyter_core
|
|
version=4.1.1
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="jupyter_core-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
depends="python-traitlets"
|
|
pycompile_module="jupyter_core jupyter.py"
|
|
short_desc="Jupyter core package (Python2)"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://github.com/jupyter/jupyter_core"
|
|
license="3-clause-BSD"
|
|
distfiles="${PYPI_SITE}/j/jupyter_core/jupyter_core-${version}.tar.gz"
|
|
checksum=ae0e69435258126466c86cd989e465a9c334c50107ef4f257decc8693650bf4c
|
|
|
|
alternatives="
|
|
jupyter-core:jupyter:/usr/bin/jupyter2.7
|
|
jupyter-core:jupyter-migrate:/usr/bin/jupyter-migrate2.7"
|
|
|
|
post_install() {
|
|
vlicense COPYING.md LICENSE
|
|
}
|
|
|
|
python3.4-jupyter_core_package() {
|
|
alternatives="
|
|
jupyter-core:jupyter:/usr/bin/jupyter3.4
|
|
jupyter-core:jupyter-migrate:/usr/bin/jupyter-migrate3.4"
|
|
noarch=yes
|
|
depends="python3.4-traitlets"
|
|
pycompile_version="3.4"
|
|
pycompile_module="jupyter_core jupyter.py"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/bin/jupyter3.4
|
|
vmove usr/bin/jupyter-migrate3.4
|
|
vmove usr/lib/python3.4
|
|
vlicense COPYING.md LICENSE
|
|
}
|
|
}
|