summaryrefslogtreecommitdiff
path: root/dev-python/hidapi/hidapi-0.12.0.2.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-07-05 12:48:33 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-07-05 12:48:33 +0000
commit5d4c09bc57db7f4d9d405dc920c549f2524bbf02 (patch)
tree8d4b5d664b3eecd2a2d08752486dcfa527a9af88 /dev-python/hidapi/hidapi-0.12.0.2.ebuild
parent252955d97f6158b3da6e4df0ad6fb2c9bebf259b (diff)
downloadbaldeagleos-repo-5d4c09bc57db7f4d9d405dc920c549f2524bbf02.tar.gz
baldeagleos-repo-5d4c09bc57db7f4d9d405dc920c549f2524bbf02.tar.xz
baldeagleos-repo-5d4c09bc57db7f4d9d405dc920c549f2524bbf02.zip
Adding metadata
Diffstat (limited to 'dev-python/hidapi/hidapi-0.12.0.2.ebuild')
-rw-r--r--dev-python/hidapi/hidapi-0.12.0.2.ebuild34
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-python/hidapi/hidapi-0.12.0.2.ebuild b/dev-python/hidapi/hidapi-0.12.0.2.ebuild
new file mode 100644
index 000000000000..1ee8967ad433
--- /dev/null
+++ b/dev-python/hidapi/hidapi-0.12.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} )
+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
+}