# Maintainer: Carlo Landmeter pkgname=py3-pikepdf _pyname=pikepdf pkgver=8.2.1 pkgrel=0 pkgdesc="Python library for reading and writing PDF" url="https://github.com/pikepdf/pikepdf" arch="all" license="MPL-2.0" depends=" py3-lxml py3-packaging py3-pillow python3 " makedepends=" py3-gpep517 py3-installer py3-pybind11-dev py3-setuptools py3-wheel python3-dev qpdf-dev " checkdepends=" py3-hypothesis py3-psutil py3-pytest py3-pytest-xdist " subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/pikepdf/pikepdf/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/$_pyname-$pkgver" # secfixes: # 2.9.1-r2: # - CVE-2021-29421 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 .testenv/bin/python3 -m pytest -n auto } package() { python3 -m installer -d "$pkgdir" \ .dist/pikepdf-*.whl } sha512sums=" e91f469ad03e887c9b42717d5cc4274e2808a8da3a705d395f5bcf4a959ba92018ccc735e4bb9c8da1d3861c6a28c8f5c4dfefe5dd90dc4a6780dfd29d6217c2 py3-pikepdf-8.2.1.tar.gz "