commit: 33bed07a9297e3e2e58e9ea85ff45c699abe6ff0
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 16 17:39:45 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Feb 16 17:39:45 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33bed07a
dev-python/flufl-lock: Use pypi.eclass
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/flufl-lock/flufl-lock-7.1.1.ebuild | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/dev-python/flufl-lock/flufl-lock-7.1.1.ebuild
b/dev-python/flufl-lock/flufl-lock-7.1.1.ebuild
index 333f2c933dd3..2b57e4e5d469 100644
--- a/dev-python/flufl-lock/flufl-lock-7.1.1.ebuild
+++ b/dev-python/flufl-lock/flufl-lock-7.1.1.ebuild
@@ -6,16 +6,15 @@ EAPI=8
DISTUTILS_USE_PEP517=pdm
PYTHON_COMPAT=( python3_{9..11} )
-inherit distutils-r1
+inherit distutils-r1 pypi
-MY_P=${P/-/.}
DESCRIPTION="NFS-safe file locking with timeouts for POSIX systems"
HOMEPAGE="
https://gitlab.com/warsaw/flufl.lock/
https://pypi.org/project/flufl.lock/
"
-SRC_URI="mirror://pypi/${PN::1}/${PN/-/.}/${MY_P}.tar.gz"
-S=${WORKDIR}/${MY_P}
+SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")"
+S=${WORKDIR}/${P/-/.}
LICENSE="Apache-2.0"
SLOT="0"