Files
void-packages/srcpkgs/python3-pikepdf/template
2021-03-22 17:53:57 -03:00

25 lines
866 B
Bash

# Template file for 'python3-pikepdf'
pkgname=python3-pikepdf
version=2.9.1
revision=1
wrksrc="pikepdf-${version}"
build_style=python3-module
hostmakedepends="python3-pybind11 python3-setuptools python3-toml python3-wheel"
makedepends="libqpdf-devel python3-pybind11"
depends="python3-lxml python3-Pillow"
checkdepends="python3-dateutil python3-hypothesis python3-lxml python3-Pillow python3-psutil python3-pytest"
short_desc="Python library for reading and writing PDF files"
maintainer="Philipp David <pd@3b.pm>"
license="MPL-2.0"
homepage="https://github.com/pikepdf/pikepdf"
distfiles="${PYPI_SITE}/p/pikepdf/pikepdf-${version}.tar.gz"
checksum=99c19cf0dd0fc89fc9e6a0de61e974e34d4111dd69802aeaee3e61fb1a74a3d8
pre_build() {
vsed -i "s/__version__.*/__version__ = '${version}'/g" setup.py
}
do_check() {
PYTHONPATH=$(cd build/lib* && pwd) python3 -m pytest
}