# Contributor: Leo # Contributor: Stefan Wagner # Maintainer: pkgname=py3-cairocffi _pkgname=cairocffi pkgver=1.6.1 pkgrel=0 pkgdesc="Python CFFI-based binding to Cairo and GDK-PixBuf" url="https://github.com/Kozea/cairocffi" arch="noarch" license="BSD-3-Clause" depends="python3 py3-cffi cairo gdk-pixbuf py3-xcffib" makedepends="py3-gpep517 py3-flit-core py3-wheel py3-installer" checkdepends=" font-dejavu py3-pytest py3-pytest-cov py3-pytest-flake8 py3-pytest-isort " subpackages="$pkgname-pyc" 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 build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/cairocffi*.whl } sha512sums=" 5489263b7e7e2aca7291860a90a6339d35e819cc03a9add47cd21b4ec0cb0274445c3e852ee3be127c42d8b5d9fcb98b02ff7eb66e3d9d243bd33527ce6ddf5c cairocffi-1.6.1.tar.gz "