1 |
commit: 28cfe151df772463dba3657eead40add851f7958 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 17 18:04:10 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 17 18:28:11 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28cfe151 |
7 |
|
8 |
dev-python/zope-schema: Use pypi.eclass |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/zope-schema/zope-schema-7.0.1.ebuild | 8 +++----- |
13 |
1 file changed, 3 insertions(+), 5 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/zope-schema/zope-schema-7.0.1.ebuild b/dev-python/zope-schema/zope-schema-7.0.1.ebuild |
16 |
index 4bd04351720d..9bc480a73519 100644 |
17 |
--- a/dev-python/zope-schema/zope-schema-7.0.1.ebuild |
18 |
+++ b/dev-python/zope-schema/zope-schema-7.0.1.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 schema Architecture" |
29 |
HOMEPAGE=" |
30 |
https://pypi.org/project/zope.schema/ |
31 |
https://github.com/zopefoundation/zope.schema/ |
32 |
" |
33 |
-SRC_URI="mirror://pypi/${PN:0: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" |