dev-python/pypdf: Bump to 6.16.2

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-08-23 20:40:17 +02:00
parent c079cfe4c9
commit c5a362e67b
2 changed files with 59 additions and 0 deletions

View File

@@ -2,4 +2,5 @@ DIST pypdf-6.14.2.gh.tar.gz 9585097 BLAKE2B d24eeea1aeb0d491880d99922c9ab27b6468
DIST pypdf-6.15.0.gh.tar.gz 10091649 BLAKE2B bc4384287edc9332971ba2c8b80f196ddd1dbc5f03eb8ca8f501fdc4fcbf224a745a536ce368bf3a02cb281a89564b3afeb059414353e60ca1b7da1f15063e8f SHA512 ea4138958ad75707cc536e670420d6cf4c57c4b10f85a46bee763d7b045254aa39d75a4f22303fcc8e104e97581316013f85a084e7baf4ab647e3268792f9dfe
DIST pypdf-6.16.0.gh.tar.gz 10101871 BLAKE2B 616feb936ed392ece3a28199f05c4e0ca5ed30211ddbeb0fcfbe63f77bdfba033fa11132e5f8f25bae58fc9b76f5a0389535dbf4c16c861d000eb1e9f8ad3364 SHA512 a9b7e6275b6d8ecf769fb78b091388090eb9175ee0ab7ce9a76755ba5003a1514e9df86b519f2858e5fd59de6e6dc2ddebba2ac445131c68ce4721f6b1e0c50e
DIST pypdf-6.16.1.gh.tar.gz 10102204 BLAKE2B 34ff13aeac0b77d6ddd5910dda5203624ff309c1ff2f7591ce0877c17c05049dd38811a8159e2c33d7b98d32ea193062ecfdb4f0c26d30b3c97f67064ebf348c SHA512 a25deabae88ca3bcfc77b317dfaa7cf5ec6ebd3a43d52daa6bcbfdb462b2f6ca9b1e5a34c030889ce28128f0bceab388a587b58f2ddc15efea4ccfc26d6bf6ca
DIST pypdf-6.16.2.gh.tar.gz 10111364 BLAKE2B 5f111487e3212a4a90b4e8595b2cad8fd4834b2256cf642821e3baff401ab6e6572316d8585441702e8353aa7b69730c99e15bce52ab83862a087fd9544f6bd7 SHA512 86fd9381b5c3cb8eb237834a298335fa75f80ad3ae57e673103c63b8a41cf6a8d172b65480d45a36fed5119b772fc720075197e17446b5e7c02bb5bbbf0ae459
DIST pypdf-sample-files-818dc013ad1f537198e9fcfae8a6b0dffe25ffa3.gh.tar.gz 11850954 BLAKE2B fbd0af91de44f2d224b3266727f0dfc462efb4d23176f4ebff147cbfa37337d891859c468b545d0c00796048584e6b621dc622d667e3d45c0b89b92f29ca3030 SHA512 bc601bfaf17f31c6358f594eaf879479e97028d7f5e5825c309a5d1eb843bfea5080c9e151287a0d915ecbc3f4d4755e326ac8fa1ceeb696c76b9f5ecc0d7e9f

View File

@@ -0,0 +1,58 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=flit-core
PYTHON_COMPAT=( python3_{12..15} )
inherit distutils-r1
SAMPLE_COMMIT=818dc013ad1f537198e9fcfae8a6b0dffe25ffa3
DESCRIPTION="Python library to work with PDF files"
HOMEPAGE="
https://pypi.org/project/pypdf/
https://github.com/py-pdf/pypdf/
"
SRC_URI="
https://github.com/py-pdf/pypdf/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
test? (
https://github.com/py-pdf/sample-files/archive/${SAMPLE_COMMIT}.tar.gz
-> ${PN}-sample-files-${SAMPLE_COMMIT}.gh.tar.gz
)
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
BDEPEND="
test? (
>=dev-python/cryptography-3.1[${PYTHON_USEDEP}]
dev-python/fonttools[${PYTHON_USEDEP}]
>=dev-python/pillow-8.0.0[jpeg,jpeg2k,tiff,zlib,${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
media-libs/jbig2dec[png]
)
"
EPYTEST_PLUGINS=( pytest-timeout )
EPYTEST_XDIST=1
distutils_enable_tests pytest
EPYTEST_DESELECT=(
# probably requires extra deps
tests/test_appearance_stream.py::test_appearance_stream_rtl
)
src_unpack() {
default
if use test; then
mv "sample-files-${SAMPLE_COMMIT}"/* "${S}"/sample-files/ || die
fi
}
python_test() {
epytest -o addopts= -m "not enable_socket"
}