commit: 3ff912067dd187a2b078b423930e614b010987a3 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> AuthorDate: Tue Jul 26 13:17:13 2022 +0000 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> CommitDate: Tue Jul 26 13:32:34 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ff91206
dev-python/stapler: fix PyPDF2 import for tests Closes: https://bugs.gentoo.org/861128 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> dev-python/stapler/stapler-1.0.0_p20220330.ebuild | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev-python/stapler/stapler-1.0.0_p20220330.ebuild b/dev-python/stapler/stapler-1.0.0_p20220330.ebuild index bcfda6105f88..4f7a695bcf35 100644 --- a/dev-python/stapler/stapler-1.0.0_p20220330.ebuild +++ b/dev-python/stapler/stapler-1.0.0_p20220330.ebuild @@ -23,3 +23,8 @@ DEPEND="test? ( dev-python/PyPDF2[${PYTHON_USEDEP}] )" RDEPEND="dev-python/PyPDF2[${PYTHON_USEDEP}]" distutils_enable_tests unittest + +src_prepare() { + default + sed -i -e 's/^from PyPDF2.pdf/from PyPDF2/' staplelib/tests.py || die +}
