diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-26 21:58:19 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-26 21:58:19 +0000 |
commit | a0953f7ac639d8e180f62ab3364ccf9af71f783d (patch) | |
tree | 49c27625d74c6c1857a4b9172594a5888344f102 /dev-python/pyocr/pyocr-0.8.3.ebuild | |
parent | ae8c098416c6e714f4466e330d7272cd5e46d452 (diff) |
gentoo auto-resync : 26:02:2023 - 21:58:19
Diffstat (limited to 'dev-python/pyocr/pyocr-0.8.3.ebuild')
-rw-r--r-- | dev-python/pyocr/pyocr-0.8.3.ebuild | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/dev-python/pyocr/pyocr-0.8.3.ebuild b/dev-python/pyocr/pyocr-0.8.3.ebuild index fddb70bcf83d..043633454a4a 100644 --- a/dev-python/pyocr/pyocr-0.8.3.ebuild +++ b/dev-python/pyocr/pyocr-0.8.3.ebuild @@ -6,11 +6,10 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{9..11} ) -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="An optical character recognition (OCR) tool wrapper" HOMEPAGE="https://gitlab.gnome.org/World/OpenPaperwork/pyocr" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="GPL-3+" SLOT="0" @@ -34,4 +33,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 +} |