# Contributor: Ivan Tham # Maintainer: pkgname=py3-xlib _pkgname=python-xlib pkgver=0.33 pkgrel=2 pkgdesc="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="python3 py3-six" checkdepends="xauth xvfb-run py3-mock py3-nose" makedepends="py3-setuptools py3-setuptools_scm" subpackages="$pkgname-pyc" source="https://github.com/python-xlib/python-xlib/releases/download/$pkgver/python-xlib-$pkgver.tar.bz2" builddir="$srcdir/$_pkgname-$pkgver" replaces="py-xlib" # Backwards compatibility provides="py-xlib=$pkgver-r$pkgrel" # Backwards compatibility build() { export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver python3 setup.py build } check() { xvfb-run -a python3 -m nose } package() { python3 setup.py install --root="$pkgdir" } sha512sums=" 3b7b4fea5cd69544d2227806853bdfdd04447089e182ca0f199e18e8bd43375d9bf03c819fd6a055ad4ad274594651e05db82585ab40d0fcf225ce36b553c991 python-xlib-0.33.tar.bz2 "