From 2ecf6e68f1f3d46e9073babf778921bb3a8b1e2b Mon Sep 17 00:00:00 2001 From: "Anna (cybertailor) Vyalkova" Date: Tue, 17 Aug 2021 00:36:30 +0500 Subject: [PATCH] dev-python/googletrans: update EAPI, enable py3.10 Signed-off-by: Anna (cybertailor) Vyalkova --- .../googletrans/googletrans-4.0.0_rc1.ebuild | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/dev-python/googletrans/googletrans-4.0.0_rc1.ebuild b/dev-python/googletrans/googletrans-4.0.0_rc1.ebuild index 3e58265221..50b5076061 100644 --- a/dev-python/googletrans/googletrans-4.0.0_rc1.ebuild +++ b/dev-python/googletrans/googletrans-4.0.0_rc1.ebuild @@ -1,28 +1,19 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="7" - -PYTHON_COMPAT=( python3_{8,9} ) - -#DISTUTILS_USE_SETUPTOOLS=rdepend - +EAPI=8 +PYTHON_COMPAT=( python3_{8..10} pypy3 ) inherit distutils-r1 -# This package uses rc1 without the underscore which is not supported by -# portage -VNAME="4.0.0rc1" -S="${WORKDIR}/${PN}-${VNAME}" - +MY_PV=${PV/_/} DESCRIPTION="Free Google Translate API for Python. Translates totally free of charge." -HOMEPAGE="https://pypi.org/project/googletrans" -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${PN}-${VNAME}.tar.gz -> ${P}.tar.gz" +HOMEPAGE="https://pypi.org/project/googletrans https://github.com/ssut/py-googletrans" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${PN}-${MY_PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${MY_PV}" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~x86" -RDEPEND=" - dev-python/requests[${PYTHON_USEDEP}] -" +RDEPEND="dev-python/requests[${PYTHON_USEDEP}]" DEPEND="${RDEPEND}"