commit:     8068373892ad0a40596c5c103a49d8dde52fb690
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 15 17:45:48 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Mar 16 03:48:05 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80683738

dev-python/hidapi: Use pypi.eclass

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

 dev-python/hidapi/hidapi-0.13.1.ebuild | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/dev-python/hidapi/hidapi-0.13.1.ebuild 
b/dev-python/hidapi/hidapi-0.13.1.ebuild
index fe4ec8ca7aa0..6a65cf05265a 100644
--- a/dev-python/hidapi/hidapi-0.13.1.ebuild
+++ b/dev-python/hidapi/hidapi-0.13.1.ebuild
@@ -4,12 +4,10 @@
 EAPI=8
 PYTHON_COMPAT=( python3_{9..11} )
 DISTUTILS_USE_PEP517=setuptools
-inherit distutils-r1
+inherit distutils-r1 pypi
 
 DESCRIPTION="A Cython interface to HIDAPI library"
 HOMEPAGE="https://github.com/trezor/cython-hidapi";
-MY_PV=$(ver_rs 3 .post)
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${MY_PV}.tar.gz"
 
 LICENSE="|| ( BSD GPL-3 )"
 SLOT="0"
@@ -21,8 +19,6 @@ BDEPEND="dev-python/cython[${PYTHON_USEDEP}]"
 
 distutils_enable_tests pytest
 
-S="${WORKDIR}/${PN}-${MY_PV}"
-
 python_configure_all() {
        DISTUTILS_ARGS=( --with-system-hidapi )
 }

Reply via email to