# Contributor: Leo # Contributor: Stefan Wagner # Maintainer: Stefan Wagner pkgname=py3-cairocffi _pkgname=cairocffi pkgver=1.1.0 pkgrel=1 pkgdesc="Python CFFI-based binding to Cairo and GDK-PixBuf" url="https://pythonhosted.org/cairocffi/" arch="noarch" license="BSD-3-Clause" depends="python3 py3-cffi cairo gdk-pixbuf" checkdepends=" py3-pytest py3-pytest-cov py3-pytest-isort py3-pytest-flake8 ttf-dejavu " makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver options="!check" # tests broken replaces="py-cairocffi" # For backwards compatibiltiy provides="py-cairocffi=$pkgver-r$pkgrel" # For backwards compatibility prepare() { # import ordering is broken upstream; remove in next version sed -i setup.cfg -e 's/addopts = --flake8 --isort/addopts = --flake8/' } build() { python3 setup.py build } check() { python3 setup.py test } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="a9bc9ec5be767388aad9d06cc3b386b474dbacf097d3558b4033834cfb2f5418eede2f4b4080bec7e4725c6821f6e54d6c3366e8c4ee73bd3fa1cf444b395197 cairocffi-1.1.0.tar.gz"