1 |
commit: 1bd7e7c5b502ea259191c0f613cdbe910387615f |
2 |
Author: Stephan Hartmann <sultan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 30 18:22:15 2022 +0000 |
4 |
Commit: Stephan Hartmann <sultan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 30 18:22:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bd7e7c5 |
7 |
|
8 |
dev-python/hidapi: new package, add 0.12.0.2, moved from ::guru |
9 |
|
10 |
Signed-off-by: Stephan Hartmann <sultan <AT> gentoo.org> |
11 |
|
12 |
dev-python/hidapi/Manifest | 1 + |
13 |
dev-python/hidapi/hidapi-0.12.0.2.ebuild | 32 ++++++++++++++++++++++++++++++++ |
14 |
dev-python/hidapi/metadata.xml | 12 ++++++++++++ |
15 |
3 files changed, 45 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/hidapi/Manifest b/dev-python/hidapi/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000000..03f65d02f5e7 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/hidapi/Manifest |
22 |
@@ -0,0 +1 @@ |
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 000000000000..5aa029943585 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/hidapi/hidapi-0.12.0.2.ebuild |
30 |
@@ -0,0 +1,32 @@ |
31 |
+# Copyright 2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+PYTHON_COMPAT=( python3_{8..11} ) |
36 |
+ |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="A Cython interface to HIDAPI library" |
40 |
+HOMEPAGE="https://github.com/trezor/cython-hidapi" |
41 |
+MY_PV=$(ver_rs 3 .post) |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${MY_PV}.tar.gz" |
43 |
+ |
44 |
+LICENSE="|| ( BSD GPL-3 )" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
47 |
+ |
48 |
+DEPEND=">=dev-libs/hidapi-$(ver_cut 1-3)" |
49 |
+RDEPEND="${DEPEND}" |
50 |
+BDEPEND="dev-python/cython[${PYTHON_USEDEP}]" |
51 |
+ |
52 |
+distutils_enable_tests pytest |
53 |
+ |
54 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
55 |
+ |
56 |
+python_configure_all() { |
57 |
+ DISTUTILS_ARGS=( --with-system-hidapi ) |
58 |
+} |
59 |
+ |
60 |
+python_test() { |
61 |
+ epytest tests.py |
62 |
+} |
63 |
|
64 |
diff --git a/dev-python/hidapi/metadata.xml b/dev-python/hidapi/metadata.xml |
65 |
new file mode 100644 |
66 |
index 000000000000..59255f6b605d |
67 |
--- /dev/null |
68 |
+++ b/dev-python/hidapi/metadata.xml |
69 |
@@ -0,0 +1,12 @@ |
70 |
+<?xml version="1.0" encoding="UTF-8"?> |
71 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
72 |
+<pkgmetadata> |
73 |
+ <maintainer type="person"> |
74 |
+ <email>sultan@g.o</email> |
75 |
+ <name>Stephan Hartmann</name> |
76 |
+ </maintainer> |
77 |
+ <upstream> |
78 |
+ <remote-id type="github">trezor/cython-hidapi</remote-id> |
79 |
+ <remote-id type="pypi">hidapi</remote-id> |
80 |
+ </upstream> |
81 |
+</pkgmetadata> |