Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/flask-login/
Date: Wed, 05 Feb 2020 21:28:26
Message-Id: 1580938054.220b96adab2658d503960b430a0e1f22d12c0ff1.asturm@gentoo
1 commit: 220b96adab2658d503960b430a0e1f22d12c0ff1
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 30 12:15:30 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 5 21:27:34 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=220b96ad
7
8 dev-python/flask-login: python3_8, disable broken test, missing RDEPEND
9
10 Test failed with python3_6 already.
11
12 Upstream bug: https://github.com/maxcountryman/flask-login/issues/461
13
14 Closes: https://bugs.gentoo.org/701546
15 Package-Manager: Portage-2.3.87, Repoman-2.3.20
16 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
17
18 dev-python/flask-login/flask-login-0.4.1-r1.ebuild | 53 ++++++++++++++++++++++
19 1 file changed, 53 insertions(+)
20
21 diff --git a/dev-python/flask-login/flask-login-0.4.1-r1.ebuild b/dev-python/flask-login/flask-login-0.4.1-r1.ebuild
22 new file mode 100644
23 index 00000000000..716ad8877a6
24 --- /dev/null
25 +++ b/dev-python/flask-login/flask-login-0.4.1-r1.ebuild
26 @@ -0,0 +1,53 @@
27 +# Copyright 1999-2020 Gentoo Authors
28 +# Distributed under the terms of the GNU General Public License v2
29 +
30 +EAPI=7
31 +
32 +PYTHON_COMPAT=( pypy3 python3_{6,7,8} )
33 +inherit distutils-r1
34 +
35 +DESCRIPTION="Login session support for Flask"
36 +HOMEPAGE="https://pypi.org/project/Flask-Login/"
37 +# Should be replaced with the PyPi URI for the next release, if possible
38 +# See https://github.com/maxcountryman/flask-login/pull/393
39 +SRC_URI="https://github.com/maxcountryman/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
40 +
41 +LICENSE="BSD"
42 +SLOT="0"
43 +KEYWORDS="amd64 x86"
44 +IUSE="doc test"
45 +RESTRICT="!test? ( test )"
46 +
47 +RDEPEND="
48 + >=dev-python/flask-0.10[${PYTHON_USEDEP}]
49 + dev-python/werkzeug[${PYTHON_USEDEP}]
50 +"
51 +DEPEND="
52 + doc? (
53 + dev-python/sphinx[${PYTHON_USEDEP}]
54 + )
55 + test? (
56 + ${RDEPEND}
57 + dev-python/blinker[${PYTHON_USEDEP}]
58 + dev-python/mock[${PYTHON_USEDEP}]
59 + dev-python/nose[${PYTHON_USEDEP}]
60 + dev-python/semantic_version[${PYTHON_USEDEP}]
61 + )"
62 +
63 +python_prepare_all() {
64 + sed -i "s/'sphinx.ext.intersphinx', //" docs/conf.py || die
65 + distutils-r1_python_prepare_all
66 +}
67 +
68 +python_compile_all() {
69 + if use doc; then
70 + emake -C docs html
71 + HTML_DOCS=( docs/_build/html/. )
72 + fi
73 +}
74 +
75 +python_test() {
76 + # test is broken upstream with >=dev-python/werkzeug-0.15, bug 701546
77 + nosetests -v -e test_unauthorized_uses_host_from_x_forwarded_for_header \
78 + || die "Tests fail with ${EPYTHON}"
79 +}