python-prompt_toolkit: update to 2.0.9.

This commit is contained in:
xaltsc 2019-04-09 11:58:17 +02:00 committed by maxice8
parent acc19a716c
commit 71ea838af6
1 changed files with 17 additions and 5 deletions

View File

@ -1,19 +1,30 @@
# Template file for 'python-prompt_toolkit'
pkgname=python-prompt_toolkit
version=1.0.15
revision=2
version=2.0.9
revision=1
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"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/p/prompt_toolkit/prompt_toolkit-${version}.tar.gz"
checksum=858588f1983ca497f1cf4ffde01d978a3ea02b01c8a26a8bbc5cd2e66d816917
checksum=2519ad1d8038fd5fc8e770362237ad0364d16a7650fb5724af6997ed5515e3c1
conflicts="python-prompt_toolkit1"
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
@ -24,8 +35,9 @@ python3-prompt_toolkit_package() {
pycompile_module="prompt_toolkit"
depends="python3-six python3-wcwidth"
short_desc="${short_desc/Python2/Python3}"
conflicts="python3-prompt_toolkit1"
pkg_install() {
vmove usr/lib/python3*
vmove "usr/lib/python3*"
vlicense LICENSE
}
}