# Template file for 'python3-pypdf' pkgname=python3-pypdf version=3.7.1 revision=1 _sample_files_gitrev=d89d531f4bed7c5e692e4c094645133baf50a044 build_wrksrc="pypdf-${version}" build_style=python3-pep517 hostmakedepends="python3-flit_core" depends="python3-Pillow" checkdepends="python3-pytest python3-pycryptodome ${depends}" short_desc="PDF library for splitting, merging, cropping, and transforming pages" maintainer="Piotr Wójcik " license="BSD-3-Clause" homepage="https://pypdf.readthedocs.io/en/latest/" changelog="https://raw.githubusercontent.com/py-pdf/pypdf/main/CHANGELOG.md" distfiles="https://github.com/py-pdf/pypdf/archive/refs/tags/${version}.tar.gz https://github.com/py-pdf/sample-files/archive/${_sample_files_gitrev}.tar.gz" checksum="c9d28daa1d8acedd4a63570df1ea5548da3022eb9c066c080e607dcae82e6bfa 4e5a055c0b6f8b7f37730456e4c376aa62afba44c439698cc6135c3906489c8e" post_extract() { rmdir ${build_wrksrc}/sample-files mv sample-files-${_sample_files_gitrev} ${build_wrksrc}/sample-files # requires unpackaged pytest-socket vsed -e '/addopts/d' -i ${build_wrksrc}/pyproject.toml } post_install() { vlicense LICENSE } python3-PyPDF2_package() { depends="${sourcepkg}>=${version}_${revision}" build_style=meta short_desc+=" (transitional dummy package)" }