# Maintainer: Keith Toh pkgname=py3-xcffib pkgver=1.4.0 pkgrel=0 pkgdesc="Drop-in replacement for xpyb based on cffi" url="https://github.com/tych0/xcffib" arch="noarch" license="Apache-2.0" depends="py3-cffi libxcb" makedepends=" libxcb-dev py3-gpep517 py3-setuptools py3-wheel " checkdepends="py3-pytest xvfb-run xeyes" subpackages="$pkgname-pyc" source="https://pypi.python.org/packages/source/x/xcffib/xcffib-$pkgver.tar.gz" builddir="$srcdir/xcffib-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl cd .testenv ln -sfv ../test test bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 310fc4c21856d2255650598c26831569061e112516d958e6f65a0a8e6d32c4bb37a14d7bb6c7da8dcaa9c4459fc83026ba9b1a9567f01f9bbcafda8fdea4f153 xcffib-1.4.0.tar.gz "