gentoo/dev-python/hidapi/hidapi-0.13.1.ebuild
Sam James 2e38d3394d
dev-python/hidapi: depend on <cython-3
Bug: https://bugs.gentoo.org/898678
Signed-off-by: Sam James <sam@gentoo.org>
2023-09-09 03:30:42 +01:00

30 lines
656 B
Bash

# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
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}"
# <cython-3 for bug #898678
BDEPEND="<dev-python/cython-3[${PYTHON_USEDEP}]"
distutils_enable_tests pytest
python_configure_all() {
DISTUTILS_ARGS=( --with-system-hidapi )
}
python_test() {
epytest tests.py
}