1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_6 )
10 DESCRIPTION="Python library to work with pdf files"
11 HOMEPAGE="https://pypi.org/project/${PN}/ https://github.com/mstamy2/PyPDF2"
12 SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
19 PATCHES=( "${FILESDIR}/${P}-py3-tests.patch" )
22 "${EPYTHON}" -m unittest Tests.tests || die "Tests failed under ${EPYTHON}"
25 python_install_all() {
28 dodoc -r Sample_Code/.
29 docompress -x /usr/share/doc/${PF}/examples
31 distutils-r1_python_install_all