summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-03-14 05:59:51 +0100
committerMichał Górny <mgorny@gentoo.org>2023-03-14 06:00:14 +0100
commit115c8989476be2cbc2f7567a880b754b47054530 (patch)
tree4f336bc3473fe3c1e2dc21c252df26ad4935b1da /dev-python/oslo-i18n
parentdev-python/trimesh: Remove old (diff)
downloadgentoo-115c8989476be2cbc2f7567a880b754b47054530.tar.gz
gentoo-115c8989476be2cbc2f7567a880b754b47054530.tar.bz2
gentoo-115c8989476be2cbc2f7567a880b754b47054530.zip
dev-python/oslo-i18n: Use pypi.eclass
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/oslo-i18n')
-rw-r--r--dev-python/oslo-i18n/oslo-i18n-6.0.0.ebuild9
1 files changed, 3 insertions, 6 deletions
diff --git a/dev-python/oslo-i18n/oslo-i18n-6.0.0.ebuild b/dev-python/oslo-i18n/oslo-i18n-6.0.0.ebuild
index af940e767e5e..aa429dc1edf5 100644
--- a/dev-python/oslo-i18n/oslo-i18n-6.0.0.ebuild
+++ b/dev-python/oslo-i18n/oslo-i18n-6.0.0.ebuild
@@ -6,10 +6,7 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )
-inherit distutils-r1
-
-MY_PN=${PN/-/.}
-MY_P=${MY_PN}-${PV}
+inherit distutils-r1 pypi
DESCRIPTION="Oslo i18n library"
HOMEPAGE="
@@ -17,8 +14,8 @@ HOMEPAGE="
https://github.com/openstack/oslo.i18n/
https://pypi.org/project/oslo.i18n/
"
-SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
-S=${WORKDIR}/${MY_P}
+SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")"
+S=${WORKDIR}/${P/-/.}
LICENSE="Apache-2.0"
SLOT="0"