void-packages/srcpkgs/python3-pikepdf/template

25 lines
859 B
Bash
Raw Normal View History

2021-03-08 17:04:10 +00:00
# Template file for 'python3-pikepdf'
pkgname=python3-pikepdf
2021-05-01 10:17:20 +00:00
version=2.11.4
revision=2
2021-03-08 17:04:10 +00:00
wrksrc="pikepdf-${version}"
build_style=python3-module
hostmakedepends="python3-pybind11 python3-setuptools_scm python3-toml python3-wheel"
2021-03-08 17:04:10 +00:00
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"
2021-05-01 10:17:20 +00:00
checksum=7352ccda2eba78aab4d0e780de0ea4f7f84df0e6a5889ccc9b33d2aa6df3a54d
2021-03-08 17:04:10 +00:00
pre_build() {
vsed -e '/setuptools_scm_git_archive/d' -i setup.py
2021-03-08 17:04:10 +00:00
}
do_check() {
PYTHONPATH=$(cd build/lib* && pwd) python3 -m pytest
}