dev-python/hidapi: drop old, fix setuptools warning

... bump eapi and python targets

Closes: https://bugs.gentoo.org/799644
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2021-08-08 21:15:19 +05:00
parent ea3aaf41da
commit 9e4e041c29
3 changed files with 5 additions and 36 deletions

View File

@@ -1,2 +1 @@
DIST hidapi-0.10.1.tar.gz 60712 BLAKE2B 9f66015f801a73ad520b303a011edbfecb6b2e79e4366b8e72cc15a4b509cd5744c4c5f9d710b120a44f10cab0c72edf6f679961979d7ad2581edf3238426609 SHA512 681e3691a4b05b13abc38d305c68e448728612442d0ef12ce54d12eeebee6e18d33566c462a276d18ce5e29fad208e6fcde49bbe4b162eae5cd72ce37dea880b
DIST hidapi-0.9.0.post3.tar.gz 57075 BLAKE2B 7c0c46faa359bf119875846680aadad94e65f5bdd225c11b4fd068cf4fb5b7fba1ed4983bc70610720d5b7ab8a2f7afd96726610309ff35cc5310a237ac117d8 SHA512 606540833459e615a8e50ff3a2c59362dab7d19d42d5e9dc2288c8c8d32e3df7214e758a9814e7de6d26bbdccd76ccf6c652b0bf8ac5b3f46124a9a7b007b971

View File

@@ -1,10 +1,10 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
EAPI=8
PYTHON_COMPAT=( python3_{8..10} pypy3 )
DISTUTILS_USE_SETUPTOOLS="rdepend"
inherit distutils-r1
DESCRIPTION="A Cython interface to the hidapi"
@@ -19,9 +19,10 @@ DEPEND="
dev-python/cython[${PYTHON_USEDEP}]
dev-libs/hidapi
"
RDEPEND="${DEPEND}"
distutils_enable_tests pytest
python_test() {
pytest -vv tests.py || die "Tests failed with ${EPYTHON}"
epytest tests.py
}

View File

@@ -1,31 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7,8,9} )
inherit distutils-r1
MY_PV=${PV/_p/.post}
DESCRIPTION="A Cython interface to the hidapi"
HOMEPAGE="https://github.com/trezor/cython-hidapi"
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
"
S="${WORKDIR}/${PN}-${MY_PV}"
distutils_enable_tests pytest
python_test() {
pytest -vv tests.py || die "Tests failed with ${EPYTHON}"
}