1 |
commit: ea63e8aff416375b8fabdd7ec8b20769ab0f0d27 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 17 18:04:07 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 17 18:28:08 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea63e8af |
7 |
|
8 |
dev-python/zope-deprecation: Use pypi.eclass |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/zope-deprecation/zope-deprecation-4.4.0-r2.ebuild | 8 +++----- |
13 |
1 file changed, 3 insertions(+), 5 deletions(-) |
14 |
|
15 |
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 |
16 |
index 39ccaef749c2..5204ed4ef0c0 100644 |
17 |
--- a/dev-python/zope-deprecation/zope-deprecation-4.4.0-r2.ebuild |
18 |
+++ b/dev-python/zope-deprecation/zope-deprecation-4.4.0-r2.ebuild |
19 |
@@ -6,17 +6,15 @@ EAPI=8 |
20 |
DISTUTILS_USE_PEP517=setuptools |
21 |
PYTHON_COMPAT=( python3_{9..11} pypy3 ) |
22 |
|
23 |
-inherit distutils-r1 |
24 |
+inherit distutils-r1 pypi |
25 |
|
26 |
-MY_PN=${PN/-/.} |
27 |
-MY_P=${MY_PN}-${PV} |
28 |
DESCRIPTION="Zope Deprecation Infrastructure" |
29 |
HOMEPAGE=" |
30 |
https://pypi.org/project/zope.deprecation/ |
31 |
https://github.com/zopefoundation/zope.deprecation/ |
32 |
" |
33 |
-SRC_URI="mirror://pypi/${MY_PN::1}/${MY_PN}/${MY_P}.tar.gz" |
34 |
-S="${WORKDIR}/${MY_P}" |
35 |
+SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")" |
36 |
+S=${WORKDIR}/${P/-/.} |
37 |
|
38 |
LICENSE="ZPL" |
39 |
SLOT="0" |