# Contributor: Ivan Tham # Maintainer: Ivan Tham pkgname=py3-xlib _pkgname=python-xlib pkgver=0.27 pkgrel=0 pkgdesc="A fully functional X client library for Python programs" url="https://github.com/python-xlib/python-xlib" arch="noarch" license="LGPL-2.1-or-later" depends="py3-six" checkdepends="xvfb-run py3-mock" makedepends="py3-setuptools" source="https://github.com/$_pkgname/$_pkgname/releases/download/$pkgver/$_pkgname-$pkgver.tar.bz2" builddir="$srcdir/$_pkgname-$pkgver" replaces="py-xlib" # Backwards compatibility provides="py-xlib=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { xvfb-run python3 setup.py test } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="6a25e796a2c522185e4df027bce8f423432dcbb5c4f74b96eb56e3d0e6e3a5be7570a872e479bbd556ef07b437043f7d97cdb2c21a0bb408e1cded44d2d9fa8f python-xlib-0.27.tar.bz2"