python-xlib: become python3-xlib, simplify testing
This commit is contained in:
parent
de7ababbee
commit
a91323d866
|
@ -1,35 +0,0 @@
|
|||
# Template file for 'python-xlib'
|
||||
pkgname=python-xlib
|
||||
version=0.29
|
||||
revision=1
|
||||
build_style=python-module
|
||||
hostmakedepends="python-setuptools python3-setuptools_scm"
|
||||
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"
|
||||
maintainer="Enno Boland <gottox@voidlinux.org>"
|
||||
license="LGPL-2.1-or-later"
|
||||
homepage="https://github.com/python-xlib/python-xlib"
|
||||
distfiles="${homepage}/releases/download/${version}/python-xlib-${version}.tar.bz2"
|
||||
checksum=1c7ed1da3fc507e5cdb636c55b3619aac3c7a226b01860191bcba887d7ebeb6d
|
||||
|
||||
pre_build() {
|
||||
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() {
|
||||
depends="python3-six"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python3*
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
python-xlib
|
|
@ -0,0 +1,19 @@
|
|||
# Template file for 'python3-xlib'
|
||||
pkgname=python3-xlib
|
||||
version=0.29
|
||||
revision=2
|
||||
wrksrc=python-xlib-${version}
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools_scm"
|
||||
depends="python3-six"
|
||||
checkdepends="$depends xvfb-run python3-nose python3-mock"
|
||||
short_desc="Fully functional X client library for Python3"
|
||||
maintainer="Enno Boland <gottox@voidlinux.org>"
|
||||
license="LGPL-2.1-or-later"
|
||||
homepage="https://github.com/python-xlib/python-xlib"
|
||||
distfiles="${homepage}/releases/download/${version}/python-xlib-${version}.tar.bz2"
|
||||
checksum=1c7ed1da3fc507e5cdb636c55b3619aac3c7a226b01860191bcba887d7ebeb6d
|
||||
|
||||
do_check() {
|
||||
python3 runtests.py
|
||||
}
|
|
@ -211,6 +211,7 @@ replaces="
|
|||
python-pyside<=1.2.2_7
|
||||
python-pytest-relaxed<=1.1.2_2
|
||||
python-sqlite<=2.8.3_1
|
||||
python-xlib<0.29_1
|
||||
python3-Django<=3.0.7_2
|
||||
python3-pyPEG2<=2.15.2_7
|
||||
qimageblitz<=0.0.6_4
|
||||
|
|
Loading…
Reference in New Issue