diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-02-26 16:20:03 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-02-26 16:25:11 +0100 |
commit | bda2d1aa7515f101dcdde4f37a8807889e7142b8 (patch) | |
tree | 03fc6270fb6d95b83c5d3c1786bfc75ae8507ca9 /dev-python/pyocr | |
parent | dev-python/pycparser: Backport lextab.py build failure fix (diff) | |
download | gentoo-bda2d1aa7515f101dcdde4f37a8807889e7142b8.tar.gz gentoo-bda2d1aa7515f101dcdde4f37a8807889e7142b8.tar.bz2 gentoo-bda2d1aa7515f101dcdde4f37a8807889e7142b8.zip |
dev-python/pyocr: Fix version-related build failure
Closes: https://bugs.gentoo.org/897690
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pyocr')
-rw-r--r-- | dev-python/pyocr/pyocr-0.8.3.ebuild | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dev-python/pyocr/pyocr-0.8.3.ebuild b/dev-python/pyocr/pyocr-0.8.3.ebuild index fddb70bcf83d..23dfc62ed252 100644 --- a/dev-python/pyocr/pyocr-0.8.3.ebuild +++ b/dev-python/pyocr/pyocr-0.8.3.ebuild @@ -34,4 +34,9 @@ RDEPEND+=" tesseract? ( app-text/tesseract ) " -export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} +src_prepare() { + # workaround setuptools failing due to version being None + # https://gitlab.gnome.org/World/OpenPaperwork/pyocr/-/issues/127 + sed -i -e '/version=version/d' setup.py || die + distutils-r1_src_prepare +} |