dev-python/hidapi: Use pypi.eclass

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2023-03-15 18:45:48 +01:00
parent e98f048614
commit 8068373892

View File

@@ -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 )
}