summaryrefslogtreecommitdiff
path: root/dev-python/PyPDF2
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/PyPDF2')
-rw-r--r--dev-python/PyPDF2/Manifest1
-rw-r--r--dev-python/PyPDF2/PyPDF2-1.27.1.ebuild32
2 files changed, 33 insertions, 0 deletions
diff --git a/dev-python/PyPDF2/Manifest b/dev-python/PyPDF2/Manifest
index 00170246eb93..4a170a4d1b0a 100644
--- a/dev-python/PyPDF2/Manifest
+++ b/dev-python/PyPDF2/Manifest
@@ -1 +1,2 @@
DIST PyPDF2-1.26.0.tar.gz 77556 BLAKE2B 8ce9b95165a3841154b6e38e24ca5a4db434ceef9c55fbf2d146b379586160cb985948e0feb7aed135f601535d034ef79ddc1af58a670b07ff7d3621907022ec SHA512 7b427f1d099dcd687a718fb8d86e6f677ad45257414c6367e4dfacd8dfef7e3dbe3816027359868764981f36a30721f1731b4c23cbe2f35cfab1c64fb290b034
+DIST PyPDF2-1.27.1.tar.gz 67702 BLAKE2B 28c0a7fc1c394b36fce6b33e0faa9f5d3cbb5653cf1fe6ab9488656aead342614287156d9852080a15163627f44714305942dd769025d1f8ad7fe1992a845516 SHA512 195f4fed2ae70d0663bc5c69f1ac340a773f27141a4c79b38000bfc542d304705e3f16c24b299505c20f893c60f2b848999ec027601e916284e009f1cc4b98e3
diff --git a/dev-python/PyPDF2/PyPDF2-1.27.1.ebuild b/dev-python/PyPDF2/PyPDF2-1.27.1.ebuild
new file mode 100644
index 000000000000..9cc9533bc8d6
--- /dev/null
+++ b/dev-python/PyPDF2/PyPDF2-1.27.1.ebuild
@@ -0,0 +1,32 @@
+# 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..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python library to work with PDF files"
+HOMEPAGE="https://pypi.org/project/PyPDF2/ https://github.com/mstamy2/PyPDF2"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+IUSE="examples"
+
+python_test() {
+ "${EPYTHON}" -m unittest Tests.tests ||
+ die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ if use examples; then
+ docinto examples
+ dodoc -r Sample_Code/.
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+ distutils-r1_python_install_all
+}