# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{10..12} ) inherit distutils-r1 pypi DESCRIPTION="A tool for recovering passwords from pixelized screenshots" HOMEPAGE="https://github.com/beurtschipper/Depix" LICENSE="CC-BY-4.0" SLOT="0" KEYWORDS="~amd64 ~x86" RDEPEND="dev-python/pillow[${PYTHON_USEDEP}]" src_prepare() { default # Fix brackets sed -i -e '/return cast/s|\[|\(|g' \ -e '/return cast/s|\]|\)|g' \ depixlib/LoadedImage.py || die "sed failed for LoadedImage.py" }