dev-python/hidapi: add new version

Pass --with-system-hidapi to setup.py in all versions

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Andrew Udvare <audvare@gmail.com>
This commit is contained in:
Andrew Udvare
2021-11-11 07:43:54 -05:00
parent 26608cffa5
commit 6d0def81ba
3 changed files with 38 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST hidapi-0.10.1.tar.gz 60712 BLAKE2B 9f66015f801a73ad520b303a011edbfecb6b2e79e4366b8e72cc15a4b509cd5744c4c5f9d710b120a44f10cab0c72edf6f679961979d7ad2581edf3238426609 SHA512 681e3691a4b05b13abc38d305c68e448728612442d0ef12ce54d12eeebee6e18d33566c462a276d18ce5e29fad208e6fcde49bbe4b162eae5cd72ce37dea880b
DIST hidapi-0.11.0.post2.tar.gz 136467 BLAKE2B 9469817cf5a87d9367d9b1d57e9b3832fc83756fbe7ba314e266fc17a17a7f82efadbb73e8e4808a0eaef8ad6478675222b99488b1ffac7b9426eb951ee3e77b SHA512 5365299ef8488561a82d2a2c911523c5d34e260f8068b4d4d26e912b6e348b328229498f0ee38d1eb9c81a969e9f91ffc7a0b9a60359f4e9d0511f8937e5ff21

View File

@@ -22,6 +22,9 @@ DEPEND="
RDEPEND="${DEPEND}"
distutils_enable_tests pytest
python_configure_all() {
mydistutilsargs=( --with-system-hidapi )
}
python_test() {
epytest tests.py

View File

@@ -0,0 +1,34 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} pypy3 )
DISTUTILS_USE_SETUPTOOLS="rdepend"
inherit distutils-r1
DESCRIPTION="A Cython interface to the hidapi"
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 )"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
SLOT="0"
DEPEND="
dev-python/cython[${PYTHON_USEDEP}]
dev-libs/hidapi
"
RDEPEND="${DEPEND}"
distutils_enable_tests pytest
S="${WORKDIR}/cython-${PN}-${MY_PV}"
python_configure_all() {
mydistutilsargs=( --with-system-hidapi )
}
python_test() {
epytest tests.py
}