diff --git a/dev-python/hidapi/Manifest b/dev-python/hidapi/Manifest index 257b0a044f..b436254627 100644 --- a/dev-python/hidapi/Manifest +++ b/dev-python/hidapi/Manifest @@ -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 diff --git a/dev-python/hidapi/hidapi-0.10.1.ebuild b/dev-python/hidapi/hidapi-0.10.1.ebuild index 4174ede606..a997150545 100644 --- a/dev-python/hidapi/hidapi-0.10.1.ebuild +++ b/dev-python/hidapi/hidapi-0.10.1.ebuild @@ -22,6 +22,9 @@ DEPEND=" RDEPEND="${DEPEND}" distutils_enable_tests pytest +python_configure_all() { + mydistutilsargs=( --with-system-hidapi ) +} python_test() { epytest tests.py diff --git a/dev-python/hidapi/hidapi-0.11.0.2.ebuild b/dev-python/hidapi/hidapi-0.11.0.2.ebuild new file mode 100644 index 0000000000..7480a78ba2 --- /dev/null +++ b/dev-python/hidapi/hidapi-0.11.0.2.ebuild @@ -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 +}