1 |
commit: d711716379d428cb654dfac9d75d4341bead563e |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Thu May 7 17:54:57 2020 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 7 17:54:57 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7117163 |
7 |
|
8 |
dev-python/pyu2f-0.1.4-r1: revbump, EAPI=7, py38 |
9 |
|
10 |
Copyright: Sony Interactive Entertainment Inc. |
11 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
dev-python/pyu2f/pyu2f-0.1.4-r1.ebuild | 42 ++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 42 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pyu2f/pyu2f-0.1.4-r1.ebuild b/dev-python/pyu2f/pyu2f-0.1.4-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..dec1edfe279 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/pyu2f/pyu2f-0.1.4-r1.ebuild |
22 |
@@ -0,0 +1,42 @@ |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
29 |
+ |
30 |
+inherit distutils-r1 |
31 |
+ |
32 |
+DESCRIPTION="Python based U2F host library" |
33 |
+HOMEPAGE="https://github.com/google/pyu2f" |
34 |
+SRC_URI="https://github.com/google/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="Apache-2.0" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~arm ~x86" |
39 |
+IUSE="test" |
40 |
+RESTRICT="!test? ( test )" |
41 |
+ |
42 |
+RDEPEND=" |
43 |
+ dev-python/six[${PYTHON_USEDEP}] |
44 |
+" |
45 |
+BDEPEND=" |
46 |
+ ${RDEPEND} |
47 |
+ test? ( |
48 |
+ dev-python/pyfakefs[${PYTHON_USEDEP}] |
49 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
50 |
+ dev-python/mock[${PYTHON_USEDEP}] |
51 |
+ dev-python/unittest2[${PYTHON_USEDEP}] |
52 |
+ ) |
53 |
+" |
54 |
+ |
55 |
+DOCS=( CONTRIBUTING.md README.md ) |
56 |
+ |
57 |
+distutils_enable_tests pytest |
58 |
+ |
59 |
+python_prepare_all() { |
60 |
+ sed -e 's:json.loads(communicate_json):json.loads(communicate_json.decode()):' \ |
61 |
+ -i pyu2f/tests/customauthenticator_test.py || die |
62 |
+ |
63 |
+ distutils-r1_python_prepare_all |
64 |
+} |