python-xlib: update to 0.29.

This commit is contained in:
Andrew J. Hesford 2021-03-02 09:45:38 -05:00
parent eea9df7824
commit 746d688516

View file

@ -1,21 +1,31 @@
# Template file for 'python-xlib' # Template file for 'python-xlib'
pkgname=python-xlib pkgname=python-xlib
version=0.27 version=0.29
revision=3 revision=1
build_style=python-module build_style=python-module
hostmakedepends="python-setuptools python3-setuptools" hostmakedepends="python-setuptools python3-setuptools_scm"
depends="python-six" depends="python-six"
checkdepends="python3-pytest python3-six python3-mock
python-pytest python-six python-mock"
short_desc="Fully functional X client library for Python2" short_desc="Fully functional X client library for Python2"
maintainer="Enno Boland <gottox@voidlinux.org>" maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later" license="LGPL-2.1-or-later"
homepage="https://github.com/python-xlib/python-xlib" homepage="https://github.com/python-xlib/python-xlib"
distfiles="${homepage}/releases/download/${version}/python-xlib-${version}.tar.bz2" distfiles="${homepage}/releases/download/${version}/python-xlib-${version}.tar.bz2"
checksum=a90667c70905c6ef0754c8a09fa61acbc1e1b7ddb946d527831800d7cbfe9348 checksum=1c7ed1da3fc507e5cdb636c55b3619aac3c7a226b01860191bcba887d7ebeb6d
pre_build() { pre_build() {
sed -i '/setup_requires/d' setup.py sed -i '/setup_requires/d' setup.py
} }
do_check() {
# Ignore tests that require an X11 DISPLAY
PYTHONPATH="$(cd build-2.7/lib* && pwd)" \
python2 -m pytest --ignore test/test_xlib_display.py
PYTHONPATH="$(cd build-${py3_ver}/lib* && pwd)" \
python3 -m pytest --ignore test/test_xlib_display.py
}
python3-xlib_package() { python3-xlib_package() {
depends="python3-six" depends="python3-six"
short_desc="${short_desc/Python2/Python3}" short_desc="${short_desc/Python2/Python3}"