summaryrefslogtreecommitdiff
path: root/dev-python/pypdf
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pypdf')
-rw-r--r--dev-python/pypdf/Manifest1
-rw-r--r--dev-python/pypdf/pypdf-6.4.1.ebuild51
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/pypdf/Manifest b/dev-python/pypdf/Manifest
index 070c7c44fdad..c90b44a8e6df 100644
--- a/dev-python/pypdf/Manifest
+++ b/dev-python/pypdf/Manifest
@@ -2,4 +2,5 @@ DIST pypdf-6.1.3.gh.tar.gz 8097681 BLAKE2B 90b617886d9e6ccdac701308479c3db6671f8
DIST pypdf-6.2.0.gh.tar.gz 8292284 BLAKE2B 5df0f87c0df7760c510b92a66e80cd260064583812e8d50c9c8b735e1b21b1e81ba0170fc112145df1d7de4681da5ed42555ef850d874a62eda5e08655878d21 SHA512 dcbcced7a0fef3cd08834850300e8eb9608e92a6092fbc68e448a43fa7ea80d3f03b864d294d526633b1bf693af8d97af42290e2d98b05078cc85c385f523194
DIST pypdf-6.3.0.gh.tar.gz 8295782 BLAKE2B cba7ff1a55f52cfa5d83e8dd11c9a9be6b38f3c9eb42ce14d22b080fdfea72e21da6698d2b05ed02d9aa5b537bd5202205ef11e9c87f2442b56fdd2659a19f3b SHA512 3271c1d991f724e1fb3e85f420a7d60570122460b38ff16b1cd8b3c9dbcadc1d59a6474568a6baf3d7be5669c013938e10246223850f1882027a9d29b016499d
DIST pypdf-6.4.0.gh.tar.gz 8297749 BLAKE2B c5259669ebf291af2c2a52b8547672dfdbbd9c6d98696f0264d5d77cc3bfa65c9421959608e1a49a31db19afd6c7a1b056ebf3a876bcca3e628ce3162a598719 SHA512 013b05c02878ae8e37899be2f431f5f10856cc35f259af0a6960b78494e6cd81fc7513af8b369dd68f83ce6f74f0dee5df353b86a2ec2ae0e67532cd0d602714
+DIST pypdf-6.4.1.gh.tar.gz 8295153 BLAKE2B 348a1a467bba56e244df5e35392cefb62e46191ea7ac61a8a19cdba3986245ce7ceee7563c597cf7c3135e32eebe1ef7990112a725b595ecee871d41cc025da1 SHA512 677456611df6841002b64aa1fa8b115068762e7f7b5a94247f65204ae693b7e81487a49cfbaf4d60d08340abc80c22ef6d07cf2a084ae8783c8665c8d23db36c
DIST pypdf-sample-files-8c405ece5eff12396a34a1fae3276132002e1753.gh.tar.gz 11748093 BLAKE2B c5989200893b28a3c2062bb024a5cfc6f3389dc259ec129857979fa43469e1274559612b4d555499e2c7e16cf34be07825229932bf4d147fa6d7324d043e97d5 SHA512 c9771129b7668a2fd1fa79bb859ae9213f3d60341cf1b9937ff0eaab0de9bf4c35adcb7b896e93329038dc0f3809a0c697c523f8fe41b43030b0b029a88058e3
diff --git a/dev-python/pypdf/pypdf-6.4.1.ebuild b/dev-python/pypdf/pypdf-6.4.1.ebuild
new file mode 100644
index 000000000000..961b1ecaea74
--- /dev/null
+++ b/dev-python/pypdf/pypdf-6.4.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit
+PYTHON_COMPAT=( python3_{11..14} )
+
+inherit distutils-r1
+
+SAMPLE_COMMIT=8c405ece5eff12396a34a1fae3276132002e1753
+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 ~ppc64 ~riscv ~x86"
+
+BDEPEND="
+ test? (
+ dev-python/cryptography[${PYTHON_USEDEP}]
+ >=dev-python/pillow-8.0.0[jpeg,jpeg2k,tiff,zlib,${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ )
+"
+
+EPYTEST_PLUGINS=( pytest-timeout )
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+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"
+}