diff options
author | Ben Kohler <bkohler@gentoo.org> | 2022-07-26 08:17:13 -0500 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2022-07-26 08:32:34 -0500 |
commit | 3ff912067dd187a2b078b423930e614b010987a3 (patch) | |
tree | e050ae66b450eb7b69e7fa7b762197fc66537419 /dev-python/stapler | |
parent | dev-embedded/esptool: fix the ver_test condition in pkg_postinst, again (diff) | |
download | gentoo-3ff912067dd187a2b078b423930e614b010987a3.tar.gz gentoo-3ff912067dd187a2b078b423930e614b010987a3.tar.bz2 gentoo-3ff912067dd187a2b078b423930e614b010987a3.zip |
dev-python/stapler: fix PyPDF2 import for tests
Closes: https://bugs.gentoo.org/861128
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'dev-python/stapler')
-rw-r--r-- | dev-python/stapler/stapler-1.0.0_p20220330.ebuild | 5 |
1 files changed, 5 insertions, 0 deletions
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 +} |