Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/google-reauth-python/
Date: Thu, 07 May 2020 17:57:09
Message-Id: 1588874199.fd2e1e8be1bd85bf2e731656a83994b2c139962e.chutzpah@gentoo
1 commit: fd2e1e8be1bd85bf2e731656a83994b2c139962e
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Thu May 7 17:56:39 2020 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Thu May 7 17:56:39 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd2e1e8b
7
8 dev-python/google-reauth-python-0.1.0-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 .../google-reauth-python-0.1.0-r1.ebuild | 44 ++++++++++++++++++++++
15 1 file changed, 44 insertions(+)
16
17 diff --git a/dev-python/google-reauth-python/google-reauth-python-0.1.0-r1.ebuild b/dev-python/google-reauth-python/google-reauth-python-0.1.0-r1.ebuild
18 new file mode 100644
19 index 00000000000..d9c8d75a6df
20 --- /dev/null
21 +++ b/dev-python/google-reauth-python/google-reauth-python-0.1.0-r1.ebuild
22 @@ -0,0 +1,44 @@
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/google-reauth-python"
34 +SRC_URI="https://github.com/google/google-reauth-python/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/oauth2client[${PYTHON_USEDEP}]
44 + dev-python/pyu2f[${PYTHON_USEDEP}]
45 + dev-python/six[${PYTHON_USEDEP}]
46 +"
47 +DEPEND="
48 + ${RDEPEND}
49 + dev-python/setuptools[${PYTHON_USEDEP}]
50 + test? (
51 + dev-python/pytest[${PYTHON_USEDEP}]
52 + dev-python/mock[${PYTHON_USEDEP}]
53 + )
54 +"
55 +
56 +DOCS=( CHANGELOG.rst CONTRIBUTING.rst README.rst )
57 +
58 +distutils_enable_tests pytest
59 +
60 +python_prepare_all() {
61 + sed -e "s:'some_origin'.encode('ascii'):'some_origin':" \
62 + -e "s:SignResponse('key_handle', 'resp',:SignResponse('key_handle'.encode(), 'resp'.encode(),:" \
63 + -i tests/test_reauth.py || die
64 +
65 + distutils-r1_python_prepare_all
66 +}