gentoo/dev-python/hidapi/hidapi-0.14.0.ebuild
Sam James af2e6e7b30
dev-python/hidapi: add 0.14.0
Closes: https://bugs.gentoo.org/898678
Closes: https://bugs.gentoo.org/908498
Signed-off-by: Sam James <sam@gentoo.org>
2023-10-10 08:05:17 +01:00

35 lines
698 B
Bash

# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 pypi
DESCRIPTION="A Cython interface to HIDAPI library"
HOMEPAGE="https://github.com/trezor/cython-hidapi"
LICENSE="|| ( BSD GPL-3 )"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
DEPEND=">=dev-libs/hidapi-$(ver_cut 1-3)"
RDEPEND="${DEPEND}"
BDEPEND="dev-python/cython[${PYTHON_USEDEP}]"
PATCHES=(
"${FILESDIR}"/${PN}-0.14.0-cython3.patch
)
distutils_enable_tests pytest
python_configure_all() {
DISTUTILS_ARGS=( --with-system-hidapi )
}
python_test() {
epytest tests.py
}