# Maintainer: Felix Yan # Contributor: Roger Duran # ALARM: dequis # - remove haskell-xcffib dependency by using the pypi release instead pkgname=python-xcffib pkgver=0.12.0 pkgrel=1 pkgdesc="Python3 drop in replacement for xpyb, an XCB python binding" arch=('any') url="https://pypi.python.org/pypi/xcffib" license=('Apache') depends=('python-six' 'python-cffi' 'libxcb') makedepends=('python-setuptools') checkdepends=('python-pytest' 'xorg-server-xvfb' 'xorg-xeyes') _name=${pkgname#python-} source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") sha512sums=('c780c20b19236d0c9814ee5f87eb149d303d3f1ffbefb61e8aae7b3f24a70df126d6f5fa545c83a811c628a088f891d173b621fea371bb7246f62366314b1630') prepare() { touch xcffib-$pkgver/test/__init__.py } build() { cd xcffib-$pkgver python setup.py build } check() { cd xcffib-$pkgver xvfb-run pytest } package() { cd xcffib-$pkgver python setup.py install --root="$pkgdir/" --optimize=1 }