diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-10-10 15:48:01 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-10-10 16:04:30 +0200 |
commit | b590076ba39c3c5aa8db3d7b3a194863ac9dab09 (patch) | |
tree | 7a99bd3ee42d7a119ec27a1f200f36e210b067ee /dev-python/PyPDF2 | |
parent | dev-python/zope-interface: Bump to 5.5.0 (diff) | |
download | gentoo-b590076ba39c3c5aa8db3d7b3a194863ac9dab09.tar.gz gentoo-b590076ba39c3c5aa8db3d7b3a194863ac9dab09.tar.bz2 gentoo-b590076ba39c3c5aa8db3d7b3a194863ac9dab09.zip |
dev-python/PyPDF2: Bump to 2.11.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/PyPDF2')
-rw-r--r-- | dev-python/PyPDF2/Manifest | 1 | ||||
-rw-r--r-- | dev-python/PyPDF2/PyPDF2-2.11.1.ebuild | 58 |
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/PyPDF2/Manifest b/dev-python/PyPDF2/Manifest index bca27104e0d0..1fe19795f584 100644 --- a/dev-python/PyPDF2/Manifest +++ b/dev-python/PyPDF2/Manifest @@ -1,3 +1,4 @@ DIST PyPDF2-2.10.9.gh.tar.gz 6448504 BLAKE2B 5508ce0b2b0d3cb00f1057a4e52dafde3ff0dbf5eaa79be46e9d20a5041b76968fd46ba74b86f15e9fb2948f2c053fd1f722f11806cfbed552d241a768d01f00 SHA512 43aec1a381e97b26145b7c8e3414a4cab33d0d03520be73b3e5e4c9565db10e9bfd764280b56f328ec5931cc41d1a6f558b29d59d0930d92de8da00b52e2f7da DIST PyPDF2-2.11.0.gh.tar.gz 6452850 BLAKE2B 695e39336cb93f138b06182b221aa7ed1f90a582bbfff9111763b60b26b37fd13f70ed3ef67c2237d19dbb845c1703944190d04fbfe6694d0afe67671b188d73 SHA512 b0574d31d7487b3346d093229cb768baa2668619c1a3b8dde135c40f9b65cc6e291cd8e012c4fcae403f3163a3ded6445491e42efdf49c36653b3167544ce64b +DIST PyPDF2-2.11.1.gh.tar.gz 6460157 BLAKE2B b9b6d1801b24c2d522200636700d26f651a5c877d31d3a72a8b9a8748a8063e163644d8ce115975a122cdfa4ad9f566f932ddd5b8f2f4545c57332f6c9f34154 SHA512 d1742a96db4b1385c0d670c682dd326d2a12e4ef36bff281bdf56b5df463c1a6ae023e40a4c591afc3c7176a73ceb610f23819cdcfebd2ecca7b327c1d21cec3 DIST PyPDF2-sample-files-bedcbe077c4898e1b97c6c6f81d937f5048b4630.gh.tar.gz 7198720 BLAKE2B 91d177e7329fd137322972a3a38841cb0611de7f839071fe2fa5ecff0343cbffdf6976f42f4a779f520a8a2bac2d6573c5cd65bf2f1bc68395077e6e9c7322d9 SHA512 0cdaee85f1da12cf678165f06c8d351aa0808137d25f68c07f19f1bd3c929eeb52e604041dfaa0df94665379aeb7d19a43426d724a5e6602b7e4fbe7a62e753d diff --git a/dev-python/PyPDF2/PyPDF2-2.11.1.ebuild b/dev-python/PyPDF2/PyPDF2-2.11.1.ebuild new file mode 100644 index 000000000000..66b49dd2cca4 --- /dev/null +++ b/dev-python/PyPDF2/PyPDF2-2.11.1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) + +inherit distutils-r1 + +SAMPLE_COMMIT=bedcbe077c4898e1b97c6c6f81d937f5048b4630 +DESCRIPTION="Python library to work with PDF files" +HOMEPAGE=" + https://pypi.org/project/PyPDF2/ + https://github.com/py-pdf/PyPDF2/ +" +SRC_URI=" + https://github.com/py-pdf/PyPDF2/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" +RESTRICT="test" +# 150+ tests require network, too many to deselect +PROPERTIES="test_network" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/typing-extensions[${PYTHON_USEDEP}] + ' 3.8 3.9) +" +BDEPEND=" + dev-python/pillow[${PYTHON_USEDEP}] + test? ( + 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 +) + +src_unpack() { + default + if use test; then + mv "sample-files-${SAMPLE_COMMIT}"/* "${P}"/sample-files/ || die + fi +} |