commit:     a7e3d3bee74989d9d687e14a99e486dd0e892910
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  7 08:17:57 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Feb  7 09:26:41 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7e3d3be

dev-python/jaraco-test: Use pypi.eclass

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

 dev-python/jaraco-test/jaraco-test-5.3.0.ebuild | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/dev-python/jaraco-test/jaraco-test-5.3.0.ebuild 
b/dev-python/jaraco-test/jaraco-test-5.3.0.ebuild
index b0ae205c84c5..0b7c88b9d685 100644
--- a/dev-python/jaraco-test/jaraco-test-5.3.0.ebuild
+++ b/dev-python/jaraco-test/jaraco-test-5.3.0.ebuild
@@ -6,16 +6,15 @@ EAPI=8
 DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{9..11} pypy3 )
 
-inherit distutils-r1
+inherit distutils-r1 pypi
 
-MY_P=${P/-/.}
 DESCRIPTION="Testing support by jaraco"
 HOMEPAGE="
        https://github.com/jaraco/jaraco.test/
        https://pypi.org/project/jaraco.test/
 "
-SRC_URI="mirror://pypi/${PN:0:1}/${PN/-/.}/${MY_P}.tar.gz"
-S=${WORKDIR}/${MY_P}
+SRC_URI="$(pypi_sdist_url "${PN/-/.}")"
+S=${WORKDIR}/${P/-/.}
 
 LICENSE="MIT"
 SLOT="0"

Reply via email to