summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-03-17 19:04:07 +0100
committerMichał Górny <mgorny@gentoo.org>2023-03-17 19:28:08 +0100
commitea63e8aff416375b8fabdd7ec8b20769ab0f0d27 (patch)
tree6a6078c06e4e0b57b724f7532fea479f55e7a0f5
parentdev-python/zope-configuration: Use pypi.eclass (diff)
downloadgentoo-ea63e8af.tar.gz
gentoo-ea63e8af.tar.bz2
gentoo-ea63e8af.zip
dev-python/zope-deprecation: Use pypi.eclass
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--dev-python/zope-deprecation/zope-deprecation-4.4.0-r2.ebuild8
1 files 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"