commit:     ea63e8aff416375b8fabdd7ec8b20769ab0f0d27
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 17 18:04:07 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Mar 17 18:28:08 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea63e8af

dev-python/zope-deprecation: Use pypi.eclass

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

 dev-python/zope-deprecation/zope-deprecation-4.4.0-r2.ebuild | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/dev-python/zope-deprecation/zope-deprecation-4.4.0-r2.ebuild 
b/dev-python/zope-deprecation/zope-deprecation-4.4.0-r2.ebuild
index 39ccaef749c2..5204ed4ef0c0 100644
--- a/dev-python/zope-deprecation/zope-deprecation-4.4.0-r2.ebuild
+++ b/dev-python/zope-deprecation/zope-deprecation-4.4.0-r2.ebuild
@@ -6,17 +6,15 @@ EAPI=8
 DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{9..11} pypy3 )
 
-inherit distutils-r1
+inherit distutils-r1 pypi
 
-MY_PN=${PN/-/.}
-MY_P=${MY_PN}-${PV}
 DESCRIPTION="Zope Deprecation Infrastructure"
 HOMEPAGE="
        https://pypi.org/project/zope.deprecation/
        https://github.com/zopefoundation/zope.deprecation/
 "
-SRC_URI="mirror://pypi/${MY_PN::1}/${MY_PN}/${MY_P}.tar.gz"
-S="${WORKDIR}/${MY_P}"
+SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")"
+S=${WORKDIR}/${P/-/.}
 
 LICENSE="ZPL"
 SLOT="0"

Reply via email to