Diff flask-security-3.0.0 with a flask-security-3.4.3

/usr/portage/dev-python/flask-security/flask-security-3.4.3.ebuild 2020-09-04 08:09:00.000000000 +0300
1 1
# Copyright 1999-2020 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=6
4
EAPI=7
5 5

  
6
PYTHON_COMPAT=( python3_{6,7,8} )
6
PYTHON_COMPAT=( python3_{6..9} )
7 7
inherit distutils-r1
8 8

  
9
MY_PN="Flask-Security"
10
MY_P="${MY_PN}-${PV}"
11

  
12 9
DESCRIPTION="Simple security for Flask apps"
13
HOMEPAGE="https://pythonhosted.org/Flask-Security/ https://pypi.org/project/Flask-Security/"
14
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
10
HOMEPAGE="
11
	https://github.com/Flask-Middleware/flask-security/
12
	https://pypi.org/project/Flask-Security-Too/"
13
SRC_URI="
14
	https://github.com/Flask-Middleware/flask-security/archive/${PV}.tar.gz
15
		-> ${P}.gh.tar.gz"
15 16

  
16 17
LICENSE="MIT"
17 18
SLOT="0"
18 19
KEYWORDS="amd64 x86"
19
IUSE="test"
20
# tests are foobar
21
RESTRICT="test"
22 20

  
23
RDEPEND=">=dev-python/flask-0.11[${PYTHON_USEDEP}]
21
RDEPEND="
22
	dev-python/cachetools[${PYTHON_USEDEP}]
23
	>=dev-python/flask-1.1.1[${PYTHON_USEDEP}]
24 24
	>=dev-python/flask-babelex-0.9.3[${PYTHON_USEDEP}]
25
	>=dev-python/flask-login-0.3.0[${PYTHON_USEDEP}]
26
	>=dev-python/flask-mail-0.7.3[${PYTHON_USEDEP}]
27
	>=dev-python/flask-principal-0.3.3[${PYTHON_USEDEP}]
28
	>=dev-python/flask-wtf-0.13.1[${PYTHON_USEDEP}]
29
	>=dev-python/itsdangerous-0.21[${PYTHON_USEDEP}]
30
	>=dev-python/passlib-1.7[${PYTHON_USEDEP}]
25
	>=dev-python/flask-login-0.4.1[${PYTHON_USEDEP}]
26
	>=dev-python/flask-principal-0.4.0[${PYTHON_USEDEP}]
27
	>=dev-python/flask-wtf-0.14.2[${PYTHON_USEDEP}]
28
	>=dev-python/itsdangerous-1.1.0[${PYTHON_USEDEP}]
29
	>=dev-python/passlib-1.7.2[${PYTHON_USEDEP}]
30
	>=dev-python/python-email-validator-1.0.5[${PYTHON_USEDEP}]
31 31
"
32 32

  
33
DEPEND="${RDEPEND}
33
BDEPEND="
34
	dev-python/Babel[${PYTHON_USEDEP}]
34 35
	test? (
35
		dev-python/nose[${PYTHON_USEDEP}]
36
		dev-python/flask-sqlalchemy[${PYTHON_USEDEP}]
37
		dev-python/flask-mongoengine[${PYTHON_USEDEP}]
38
		dev-python/bcrypt[${PYTHON_USEDEP}]
39
		dev-python/simplejson[${PYTHON_USEDEP}]
36
		>=dev-python/argon2-cffi-19.1.0[${PYTHON_USEDEP}]
37
		>=dev-python/bcrypt-3.1.5[${PYTHON_USEDEP}]
38
		>=dev-python/cryptography-2.3.1[${PYTHON_USEDEP}]
39
		>=dev-python/flask-mail-0.9.1[${PYTHON_USEDEP}]
40
		>=dev-python/flask-mongoengine-0.9.5[${PYTHON_USEDEP}]
41
		>=dev-python/flask-sqlalchemy-2.3[${PYTHON_USEDEP}]
42
		>=dev-python/mongomock-3.19.0[${PYTHON_USEDEP}]
43
		>=dev-python/peewee-3.11.2[${PYTHON_USEDEP}]
44
		>=dev-python/phonenumbers-8.11.1[${PYTHON_USEDEP}]
45
		>=dev-python/psycopg-2.8.4:2[${PYTHON_USEDEP}]
46
		>=dev-python/pymysql-0.9.3[${PYTHON_USEDEP}]
47
		>=dev-python/pyqrcode-1.2[${PYTHON_USEDEP}]
48
		>=dev-python/zxcvbn-4.4.28[${PYTHON_USEDEP}]
49
		$(python_gen_cond_dep '
50
			>=dev-python/pony-0.7.11[${PYTHON_USEDEP}]
51
		' python3_{6,7})
40 52
	)"
41 53

  
42
S="${WORKDIR}/${MY_P}"
54
distutils_enable_tests pytest
55

  
56
PATCHES=(
57
	"${FILESDIR}"/${P}-optional-deps.patch
58
)
43 59

  
44 60
src_prepare() {
45
	sed -i -e '/pytest-runner/d' setup.py || die
61
	sed -i -e '/setup_requires/d' setup.py || die
62
	sed -e 's:--cov flask_security::' \
63
		-e 's:--cov-report term-missing::' \
64
		-e 's:--black::' \
65
		-e 's:--flake8::' \
66
		-e 's:--cache-clear::' \
67
		-i pytest.ini || die
46 68
	distutils-r1_src_prepare
47 69
}
48 70

  
49
python_test() {
50
	nosetests -v || die "Testing failed with ${EPYTHON}"
71
python_configure_all() {
72
	esetup.py compile_catalog
51 73
}
Thank you!