1 |
commit: b088bc43b76e71596cf5c692146c48a1e3e03255 |
2 |
Author: James Beddek <telans <AT> posteo <DOT> de> |
3 |
AuthorDate: Mon Jul 4 11:50:45 2022 +0000 |
4 |
Commit: Theo Anderson <telans <AT> posteo <DOT> de> |
5 |
CommitDate: Mon Jul 4 11:50:45 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b088bc43 |
7 |
|
8 |
dev-python/hidapi: add 0.12.0.2 |
9 |
|
10 |
Signed-off-by: James Beddek <telans <AT> posteo.de> |
11 |
|
12 |
dev-python/hidapi/Manifest | 1 + |
13 |
dev-python/hidapi/hidapi-0.12.0.2.ebuild | 34 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 35 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/hidapi/Manifest b/dev-python/hidapi/Manifest |
17 |
index b43625462..5ff33b35e 100644 |
18 |
--- a/dev-python/hidapi/Manifest |
19 |
+++ b/dev-python/hidapi/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST hidapi-0.10.1.tar.gz 60712 BLAKE2B 9f66015f801a73ad520b303a011edbfecb6b2e79e4366b8e72cc15a4b509cd5744c4c5f9d710b120a44f10cab0c72edf6f679961979d7ad2581edf3238426609 SHA512 681e3691a4b05b13abc38d305c68e448728612442d0ef12ce54d12eeebee6e18d33566c462a276d18ce5e29fad208e6fcde49bbe4b162eae5cd72ce37dea880b |
22 |
DIST hidapi-0.11.0.post2.tar.gz 136467 BLAKE2B 9469817cf5a87d9367d9b1d57e9b3832fc83756fbe7ba314e266fc17a17a7f82efadbb73e8e4808a0eaef8ad6478675222b99488b1ffac7b9426eb951ee3e77b SHA512 5365299ef8488561a82d2a2c911523c5d34e260f8068b4d4d26e912b6e348b328229498f0ee38d1eb9c81a969e9f91ffc7a0b9a60359f4e9d0511f8937e5ff21 |
23 |
+DIST hidapi-0.12.0.post2.tar.gz 125008 BLAKE2B 6792d8a4bbd80da19b3dd1fde47061e3a0f00678059e36598da4a34142cbfe1e732854c2a372a869891be79e1131a7cef138913556159574f10b8b08439bfefe SHA512 dee9f1f07e4f297b935c8e3fbe798471f449f6a101d68131db23d24ccfb5ce445cc3b0e7305606d3630443a817aa75a27093109078735168a59d21614606f0a0 |
24 |
|
25 |
diff --git a/dev-python/hidapi/hidapi-0.12.0.2.ebuild b/dev-python/hidapi/hidapi-0.12.0.2.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000..800ba1896 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/hidapi/hidapi-0.12.0.2.ebuild |
30 |
@@ -0,0 +1,34 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..11} ) |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+MY_PV=$(ver_rs 3 .post) |
40 |
+ |
41 |
+DESCRIPTION="A Cython interface to the hidapi" |
42 |
+HOMEPAGE="https://github.com/trezor/cython-hidapi" |
43 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${MY_PV}.tar.gz" |
44 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
45 |
+ |
46 |
+LICENSE="|| ( BSD GPL-3 )" |
47 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
48 |
+SLOT="0" |
49 |
+ |
50 |
+DEPEND=" |
51 |
+ dev-python/cython[${PYTHON_USEDEP}] |
52 |
+ dev-libs/hidapi |
53 |
+" |
54 |
+RDEPEND="${DEPEND}" |
55 |
+ |
56 |
+distutils_enable_tests pytest |
57 |
+ |
58 |
+python_configure_all() { |
59 |
+ DISTUTILS_ARGS=( --with-system-hidapi ) |
60 |
+} |
61 |
+ |
62 |
+python_test() { |
63 |
+ epytest tests.py |
64 |
+} |