From d97953e6ff67978da9554e7b4601aedceb21e215 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Tue, 12 Apr 2022 21:03:09 +0000 Subject: Adding metadata --- dev-python/hidapi/hidapi-0.11.0.2.ebuild | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dev-python/hidapi/hidapi-0.11.0.2.ebuild (limited to 'dev-python/hidapi/hidapi-0.11.0.2.ebuild') 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 000000000000..c8df53aea2fa --- /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_{7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS="rdepend" +inherit distutils-r1 + +MY_PV=$(ver_rs 3 .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" +S="${WORKDIR}/${PN}-${MY_PV}" + +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 + +python_configure_all() { + DISTUTILS_ARGS=( --with-system-hidapi ) +} + +python_test() { + epytest tests.py +} -- cgit v1.3