commit: 1701229cd7c20a3c73e826e1bf7d56c39249c7ec
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 17 18:04:09 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Mar 17 18:28:10 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1701229c
dev-python/zope-exceptions: Use pypi.eclass
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/zope-exceptions/zope-exceptions-4.6.ebuild | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/dev-python/zope-exceptions/zope-exceptions-4.6.ebuild
b/dev-python/zope-exceptions/zope-exceptions-4.6.ebuild
index 3b4323daa488..55d8d703c531 100644
--- a/dev-python/zope-exceptions/zope-exceptions-4.6.ebuild
+++ b/dev-python/zope-exceptions/zope-exceptions-4.6.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="General purpose exceptions for Zope packages"
HOMEPAGE="
https://pypi.org/project/zope.exceptions/
https://github.com/zopefoundation/zope.exceptions/
"
-SRC_URI="mirror://pypi/${PN::1}/${PN/-/.}/${MY_P}.tar.gz"
-S="${WORKDIR}/${MY_P}"
+SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")"
+S=${WORKDIR}/${P/-/.}
LICENSE="ZPL"
SLOT="0"