commit:     f01d61ce0ecfd855b3c3e3f532f64bfb9ed95e01
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Feb  1 15:21:17 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Feb  5 05:10:34 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f01d61ce

dev-python/markups: Use pypi.eclass

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/markups/markups-4.0.0.ebuild | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/dev-python/markups/markups-4.0.0.ebuild 
b/dev-python/markups/markups-4.0.0.ebuild
index ebc63113662d..5a364ea4a6d9 100644
--- a/dev-python/markups/markups-4.0.0.ebuild
+++ b/dev-python/markups/markups-4.0.0.ebuild
@@ -6,17 +6,16 @@ EAPI=8
 DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{9..10} )
 
-inherit distutils-r1
+inherit distutils-r1 pypi
 
-MY_P=${P^}
 DESCRIPTION="A wrapper around various text markups"
 HOMEPAGE="
        https://pymarkups.readthedocs.io/en/latest/
        https://github.com/retext-project/pymarkups
        https://pypi.org/project/Markups/
 "
-SRC_URI="mirror://pypi/${MY_P:0:1}/${PN^}/${MY_P}.tar.gz"
-S="${WORKDIR}/${MY_P}"
+SRC_URI="$(pypi_sdist_url "${PN^}")"
+S=${WORKDIR}/${P^}
 
 LICENSE="BSD"
 SLOT="0"

Reply via email to