commit:     450202c74b98414c688511d7e02458bc4e90f6d7
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 27 19:07:34 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Mar 27 19:07:34 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=450202c7

dev-python/piexif: Use pypi.eclass

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

 dev-python/piexif/piexif-1.1.3-r2.ebuild | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/dev-python/piexif/piexif-1.1.3-r2.ebuild 
b/dev-python/piexif/piexif-1.1.3-r2.ebuild
index 86b91124fcd9..5afdf1943a90 100644
--- a/dev-python/piexif/piexif-1.1.3-r2.ebuild
+++ b/dev-python/piexif/piexif-1.1.3-r2.ebuild
@@ -6,12 +6,14 @@ EAPI=8
 DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( pypy3 python3_{9..11} )
 
-inherit edos2unix distutils-r1
+inherit edos2unix distutils-r1 pypi
 
 DESCRIPTION="Exif manipulation with pure Python"
-HOMEPAGE="https://github.com/hMatoba/Piexif
-       https://pypi.org/project/piexif/";
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
+HOMEPAGE="
+       https://github.com/hMatoba/Piexif/
+       https://pypi.org/project/piexif/
+"
+SRC_URI="$(pypi_sdist_url "${PN}" "${PV}" .zip)"
 
 LICENSE="MIT"
 SLOT="0"
@@ -19,10 +21,10 @@ KEYWORDS="amd64 ~riscv ~x86"
 IUSE="test"
 RESTRICT="!test? ( test )"
 
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+BDEPEND="
        app-arch/unzip
-       test? ( dev-python/pillow[jpeg,${PYTHON_USEDEP}] )"
-RDEPEND=""
+       test? ( dev-python/pillow[jpeg,${PYTHON_USEDEP}] )
+"
 
 PATCHES=(
        # From https://github.com/hMatoba/Piexif/pull/109
@@ -35,5 +37,5 @@ src_prepare() {
 }
 
 python_test() {
-       "${PYTHON}" setup.py test || die
+       esetup.py test
 }

Reply via email to