# Template file for 'python3-pypdf' pkgname=python3-pypdf version=3.17.4 revision=2 _sample_files_gitrev=964fb47b0fbfa89864680582640ae4eedf143890 build_wrksrc="pypdf-${version}" build_style=python3-pep517 # requires unpackaged pytest-socket, fpdf2 make_check_args="-m not(enable_socket) --deselect tests/test_page.py::test_compression --deselect tests/test_writer.py::test_merging_many_temporary_files" hostmakedepends="python3-flit_core" depends="python3-Pillow" checkdepends="python3-pytest python3-pytest-timeout python3-pycryptodome python3-yaml ${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="ccc89b7b732192e66028cb6ff468a6b25279f53cfecf037b074775de38d88062 2200786fd7b5244785fd77268f7d79ec38238dbcc76b0e162e2eb197b45351fd" 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)" }