# Template file for 'python3-pikepdf'
pkgname=python3-pikepdf
version=10.10.0
revision=1
build_style=python3-pep517
hostmakedepends="ninja python3-scikit-build-core python3-nanobind"
makedepends="libqpdf-devel python3-devel"
depends="python3-lxml python3-packaging python3-Pillow"
checkdepends="$depends python3-pytest python3-pytest-cov python3-pytest-timeout python3-pytest-xdist
 python3-dateutil python3-numpy python3-psutil python3-nanobind python3-hypothesis python3-attrs"
short_desc="Python library for reading and writing PDF files"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MPL-2.0"
homepage="https://github.com/pikepdf/pikepdf"
changelog="https://raw.githubusercontent.com/pikepdf/pikepdf/main/docs/releasenotes/version${version%%.*}.md"
distfiles="${PYPI_SITE}/p/pikepdf/pikepdf-${version}.tar.gz"
checksum=9f134806b2fe608ccb21379a664ddcefeac3f6944100d343b350299d3c69754e

export CMAKE_ARGS="-DPython_INCLUDE_DIR:PATH=${XBPS_CROSS_BASE}/${py3_inc}"

if [ "$XBPS_BUILD_ENVIRONMENT" = "void-packages-ci" ]; then
	make_check_args="-k not((test_save_to_dev_null)or(test_repr_stream))"
fi
