From b590c8d7572b727d565cc0b8ff660d43569845de Mon Sep 17 00:00:00 2001 From: root Date: Fri, 12 Jun 2026 19:09:37 -0500 Subject: Adding metadata --- dev-python/hidapi/hidapi-0.15.0.ebuild | 44 ++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 dev-python/hidapi/hidapi-0.15.0.ebuild (limited to 'dev-python/hidapi/hidapi-0.15.0.ebuild') diff --git a/dev-python/hidapi/hidapi-0.15.0.ebuild b/dev-python/hidapi/hidapi-0.15.0.ebuild new file mode 100644 index 000000000000..44ce100bdc2d --- /dev/null +++ b/dev-python/hidapi/hidapi-0.15.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A Cython interface to HIDAPI library" +HOMEPAGE=" + https://github.com/trezor/cython-hidapi/ + https://pypi.org/project/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}] + virtual/pkgconfig +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +python_configure_all() { + DISTUTILS_ARGS=( + --with-system-hidapi + ) +} + +python_test() { + epytest tests.py +} -- cgit v1.3.1