commit:     b0301eada4ee37b58626f30760ab55309673c2a8
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Feb  1 15:18:13 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=b0301ead

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

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

 dev-python/ensurepip-pip/ensurepip-pip-23.0.ebuild | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/dev-python/ensurepip-pip/ensurepip-pip-23.0.ebuild 
b/dev-python/ensurepip-pip/ensurepip-pip-23.0.ebuild
index 971c00d30abe..8a4b916f03bd 100644
--- a/dev-python/ensurepip-pip/ensurepip-pip-23.0.ebuild
+++ b/dev-python/ensurepip-pip/ensurepip-pip-23.0.ebuild
@@ -3,14 +3,11 @@
 
 EAPI=8
 
-MY_PN=${PN#ensurepip-}
-WHL=${MY_PN}-${PV}-py3-none-any.whl
+inherit pypi
 
 DESCRIPTION="Shared pip wheel for ensurepip Python module"
 HOMEPAGE="https://pypi.org/project/pip/";
-SRC_URI="
-       https://files.pythonhosted.org/packages/py3/${MY_PN::1}/${MY_PN}/${WHL}
-"
+SRC_URI="$(pypi_wheel_url "${PN#ensurepip-}")"
 S=${DISTDIR}
 
 LICENSE="Apache-2.0 BSD BSD-2 ISC LGPL-2.1+ MIT MPL-2.0 PSF-2"
@@ -23,5 +20,5 @@ RDEPEND="
 
 src_install() {
        insinto /usr/lib/python/ensurepip
-       doins "${WHL}"
+       doins "${A}"
 }

Reply via email to