commit: 492b1db1f4ea5f68408cb236aae815c75674ab1e
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 30 17:41:38 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul 30 17:51:26 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=492b1db1
dev-python/pypdf: Bump to 3.14.0
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pypdf/Manifest | 1 +
dev-python/pypdf/pypdf-3.14.0.ebuild | 56 ++++++++++++++++++++++++++++++++++++
2 files changed, 57 insertions(+)
diff --git a/dev-python/pypdf/Manifest b/dev-python/pypdf/Manifest
index e27f61913b48..3737a00dd765 100644
--- a/dev-python/pypdf/Manifest
+++ b/dev-python/pypdf/Manifest
@@ -1,4 +1,5 @@
DIST pypdf-3.12.2.gh.tar.gz 7560560 BLAKE2B
f00047287619e49829d516f06020119f2ff19e0d4e67ccf4e45c05b1bff66ca3e69a03da99113accb818b8873ae5e637d23991925633ac01a20dcd35a15d1609
SHA512
b888c81cc3cb331f7b5709c4fa29c9f2f0790fc67679112de9e48f31cb20047b7622bcb8e555d5113e6dea96ec5d1c2759ac84696278123eb5a7faeea727b192
DIST pypdf-3.13.0.gh.tar.gz 7563894 BLAKE2B
f2f34dccda87e719b326b4c48331e9813a36dbecd14d26f9268b44891939fb3dac3a2bf2e298efd927e8fe97869f43d39f2890008858d42255c31f6496e2003a
SHA512
6259b242aaba8e0b63b988749850aa2138b802eaf52d146793635ff723956f19b1989c3c76278ed4240acbc88f8dd4b7e64fcf777508e98dee81093d794b2945
+DIST pypdf-3.14.0.gh.tar.gz 7572714 BLAKE2B
5a706eb9f9965de9ec3e3b03e243b629700b0c43b0549d49c33cc0a4d5ab570c75aa03695ccb8b08dac99032e9c4c170f2511c0dc644fed90d14da4a3fd18dbd
SHA512
f7fc45a10249d3a86e60ed73f8e9a226a8bbb3fe181efdc8102128b7005a39f2479386801d18e8d6be56e8a12b5d3c8769a9c5504df27bec981ebe9cf22da205
DIST pypdf-sample-files-2cf1e75af7bcb9c097deae6fb112c715d4721744.gh.tar.gz
10226061 BLAKE2B
a9b32d6cd3d22bbc0aee54ca3e914c4d2eb2a9a44a1a508e54e0a8fbcb5fad9ab05e72cf66553a1b5595131104ff22dea115d2804d2970200c4cf5f808532174
SHA512
f064f0468b07bf705a1d0f3a0fc6fe535c234a39408dca268f223e7c3548e66f599a4e67156e7848b70e9a3bd1bc2756395dd93b0c828ee08fe2bb8833f2b196
DIST pypdf-sample-files-5b5ee6b0e9bf4b683490351b1e15e01d6553da7b.gh.tar.gz
10226115 BLAKE2B
7488897284b840c7d4c26525425d326024936654cea42c47f260d1bc61a32a5c1da0a7eb8a9ad532857ea5c2db3446ce5850c509f44ccf6143b8cf4cb826e6c9
SHA512
70d4f0b6957160698afdc9b5bfb9d197f55f1651bc2ec2326621bb77bae5460fe0d4d8543ddbb7ed270c2bd36ad0ccae14deae6040d7f4a01db52374b820fd7e
diff --git a/dev-python/pypdf/pypdf-3.14.0.ebuild
b/dev-python/pypdf/pypdf-3.14.0.ebuild
new file mode 100644
index 000000000000..a39c83ec38db
--- /dev/null
+++ b/dev-python/pypdf/pypdf-3.14.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1
+
+SAMPLE_COMMIT=5b5ee6b0e9bf4b683490351b1e15e01d6553da7b
+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-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+BDEPEND="
+ test? (
+ >=dev-python/pillow-8.0.0[jpeg,jpeg2k,tiff,${PYTHON_USEDEP}]
+ dev-python/pycryptodome[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+EPYTEST_DESELECT=(
+ # rely on -Werror
+ tests/test_utils.py::test_deprecate_no_replacement
+ tests/test_workflows.py::test_orientations
+ # TODO: requires fpdf
+ tests/test_page.py::test_compression
+)
+
+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"
+}