summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-03-17 19:04:10 +0100
committerMichał Górny <mgorny@gentoo.org>2023-03-17 19:28:11 +0100
commit28cfe151df772463dba3657eead40add851f7958 (patch)
tree58531894eba82952bbb27886973bc701d93b38c3 /dev-python/zope-schema
parentdev-python/zope-exceptions: Use pypi.eclass (diff)
downloadgentoo-28cfe151df772463dba3657eead40add851f7958.tar.gz
gentoo-28cfe151df772463dba3657eead40add851f7958.tar.bz2
gentoo-28cfe151df772463dba3657eead40add851f7958.zip
dev-python/zope-schema: Use pypi.eclass
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/zope-schema')
-rw-r--r--dev-python/zope-schema/zope-schema-7.0.1.ebuild8
1 files changed, 3 insertions, 5 deletions
diff --git a/dev-python/zope-schema/zope-schema-7.0.1.ebuild b/dev-python/zope-schema/zope-schema-7.0.1.ebuild
index 4bd04351720d..9bc480a73519 100644
--- a/dev-python/zope-schema/zope-schema-7.0.1.ebuild
+++ b/dev-python/zope-schema/zope-schema-7.0.1.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 schema Architecture"
HOMEPAGE="
https://pypi.org/project/zope.schema/
https://github.com/zopefoundation/zope.schema/
"
-SRC_URI="mirror://pypi/${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="ZPL"
SLOT="0"