mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 00:05:54 +03:00
dev-python/hidapi: Use pypi.eclass
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -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 )
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user