void-packages/srcpkgs/python-prompt_toolkit2/template

44 lines
1.3 KiB
Bash

# Template file for 'python-prompt_toolkit2'
pkgname=python-prompt_toolkit2
version=2.0.9
revision=4
archs=noarch
wrksrc="prompt_toolkit-${version}"
build_style=python-module
pycompile_module="prompt_toolkit"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-six python-wcwidth"
checkdepends="python-pytest python-six python-wcwidth python3-pytest
python3-six python3-wcwidth"
short_desc="Python2 library for building powerful interactive command lines"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/jonathanslenders/python-prompt-toolkit"
distfiles="${PYPI_SITE}/p/prompt_toolkit/prompt_toolkit-${version}.tar.gz"
checksum=2519ad1d8038fd5fc8e770362237ad0364d16a7650fb5724af6997ed5515e3c1
conflicts="python-prompt_toolkit"
do_check() {
PY2PATH="${PWD}/build-2.7/lib"
PY3PATH="${PWD}/build-${py3_ver}/lib"
PYTHONPATH="${PY2PATH}" python2 -m pytest
PYTHONPATH="${PY3PATH}" python3 -m pytest
}
post_install() {
vlicense LICENSE
}
python3-prompt_toolkit2_package() {
archs=noarch
pycompile_module="prompt_toolkit"
depends="python3-six python3-wcwidth"
short_desc="${short_desc/Python2/Python3}"
conflicts="python3-prompt_toolki1"
pkg_install() {
vmove "usr/lib/python3*"
vlicense LICENSE
}
}