summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-02-07 09:08:11 +0100
committerMichał Górny <mgorny@gentoo.org>2023-02-07 10:26:34 +0100
commit657b725ed7d17180b673c5efe50b94551500fae4 (patch)
tree22d284d5c6c3bec1be89301a5ee75308cf6e1298 /dev-python/jaraco-context
parentdev-python/jaraco-collections: Use pypi.eclass (diff)
downloadgentoo-657b725ed7d17180b673c5efe50b94551500fae4.tar.gz
gentoo-657b725ed7d17180b673c5efe50b94551500fae4.tar.bz2
gentoo-657b725ed7d17180b673c5efe50b94551500fae4.zip
dev-python/jaraco-context: Use pypi.eclass
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/jaraco-context')
-rw-r--r--dev-python/jaraco-context/jaraco-context-4.3.0.ebuild7
1 files changed, 3 insertions, 4 deletions
diff --git a/dev-python/jaraco-context/jaraco-context-4.3.0.ebuild b/dev-python/jaraco-context/jaraco-context-4.3.0.ebuild
index 100882e1beea..39e927ce5755 100644
--- a/dev-python/jaraco-context/jaraco-context-4.3.0.ebuild
+++ b/dev-python/jaraco-context/jaraco-context-4.3.0.ebuild
@@ -7,16 +7,15 @@ EAPI=7
DISTUTILS_USE_PEP517=flit
PYTHON_COMPAT=( python3_{9..11} pypy3 )
-inherit distutils-r1
+inherit distutils-r1 pypi
-MY_P=${P/-/.}
DESCRIPTION="Context managers by jaraco"
HOMEPAGE="
https://github.com/jaraco/jaraco.context/
https://pypi.org/project/jaraco.context/
"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN/-/.}/${MY_P}.tar.gz"
-S="${WORKDIR}/${MY_P}"
+SRC_URI="$(pypi_sdist_url "${PN/-/.}")"
+S=${WORKDIR}/${P/-/.}
LICENSE="MIT"
SLOT="0"