From 3ff912067dd187a2b078b423930e614b010987a3 Mon Sep 17 00:00:00 2001 From: Ben Kohler Date: Tue, 26 Jul 2022 08:17:13 -0500 Subject: dev-python/stapler: fix PyPDF2 import for tests Closes: https://bugs.gentoo.org/861128 Signed-off-by: Ben Kohler --- dev-python/stapler/stapler-1.0.0_p20220330.ebuild | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dev-python/stapler') 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 +} -- cgit v1.2.3-65-gdbad