commit:     4b2c68e4202483764817dbd11b5460f07aa0dba3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Feb  1 15:18:50 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Feb  5 05:10:35 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b2c68e4

dev-python/ensurepip-setuptools: Use pypi.eclass

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../ensurepip-setuptools/ensurepip-setuptools-66.1.1.ebuild      | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/dev-python/ensurepip-setuptools/ensurepip-setuptools-66.1.1.ebuild 
b/dev-python/ensurepip-setuptools/ensurepip-setuptools-66.1.1.ebuild
index 22682736bd2f..c13c3370cbbe 100644
--- a/dev-python/ensurepip-setuptools/ensurepip-setuptools-66.1.1.ebuild
+++ b/dev-python/ensurepip-setuptools/ensurepip-setuptools-66.1.1.ebuild
@@ -3,14 +3,11 @@
 
 EAPI=8
 
-MY_PN=${PN#ensurepip-}
-WHL=${MY_PN}-${PV}-py3-none-any.whl
+inherit pypi
 
 DESCRIPTION="Shared setuptools wheel for ensurepip Python module"
 HOMEPAGE="https://pypi.org/project/setuptools/";
-SRC_URI="
-       https://files.pythonhosted.org/packages/py3/${MY_PN::1}/${MY_PN}/${WHL}
-"
+SRC_URI="$(pypi_wheel_url "${PN#ensurepip-}")"
 S=${DISTDIR}
 
 LICENSE="MIT"
@@ -23,5 +20,5 @@ RDEPEND="
 
 src_install() {
        insinto /usr/lib/python/ensurepip
-       doins "${WHL}"
+       doins "${A}"
 }

Reply via email to