View | Details | Raw Unified | Return to bug 242617 | Differences between
and this patch

Collapse All | Expand All

(-)b/www/Makefile (+1 lines)
Lines 1645-1650 Link Here
1645
    SUBDIR += py-flask-restful
1645
    SUBDIR += py-flask-restful
1646
    SUBDIR += py-flask-restplus
1646
    SUBDIR += py-flask-restplus
1647
    SUBDIR += py-flask-script
1647
    SUBDIR += py-flask-script
1648
    SUBDIR += py-flask-security
1648
    SUBDIR += py-flask-smorest
1649
    SUBDIR += py-flask-smorest
1649
    SUBDIR += py-flask-socketio
1650
    SUBDIR += py-flask-socketio
1650
    SUBDIR += py-flask-sockets
1651
    SUBDIR += py-flask-sockets
(-)b/www/py-flask-security/Makefile (+81 lines)
Added Link Here
1
# $FreeBSD$
2
3
PORTNAME=	flask-security
4
PORTVERSION=	3.0.0
5
CATEGORIES=	www devel python
6
MASTER_SITES=	CHEESESHOP
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
DISTNAME=	Flask-Security-${DISTVERSION}
9
10
MAINTAINER=	meka@tilda.center
11
COMMENT=	Simple security for Flask apps
12
13
LICENSE=	MIT
14
LICENSE_FILE=	${WRKSRC}/LICENSE
15
16
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest-runner>=0:devel/py-pytest-runner@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}Babel>=0:devel/py-babel@${PY_FLAVOR}
18
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Flask>=0:www/py-flask@${PY_FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}Flask-Login>=0:www/py-flask-login@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}Flask-Mail>=0:mail/py-flask-mail@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}Flask-Principal>=0:www/py-flask-principal@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}Flask-WTF>=0:www/py-flask-wtf@${PY_FLAVOR} \
23
		${PYTHON_PKGNAMEPREFIX}flask-babelex>=0:www/py-flask-babelex@${PY_FLAVOR} \
24
		${PYTHON_PKGNAMEPREFIX}itsdangerous>=0:security/py-itsdangerous@${PY_FLAVOR} \
25
		${PYTHON_PKGNAMEPREFIX}passlib>=0:security/py-passlib@${PY_FLAVOR}
26
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Flask-SQLAlchemy>=0:databases/py-flask-sqlalchemy@${PY_FLAVOR} \
27
		${PYTHON_PKGNAMEPREFIX}bcrypt>=0:security/py-bcrypt@${PY_FLAVOR} \
28
		${PYTHON_PKGNAMEPREFIX}check-manifest>=0:devel/py-check-manifest@${PY_FLAVOR} \
29
		${PYTHON_PKGNAMEPREFIX}coverage>=0:devel/py-coverage@${PY_FLAVOR} \
30
		${PYTHON_PKGNAMEPREFIX}isort>=0:devel/py-isort@${PY_FLAVOR} \
31
		${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \
32
		${PYTHON_PKGNAMEPREFIX}mongoengine>=0:databases/py-mongoengine@${PY_FLAVOR} \
33
		${PYTHON_PKGNAMEPREFIX}pydocstyle>=0:devel/py-pydocstyle@${PY_FLAVOR} \
34
		${PYTHON_PKGNAMEPREFIX}pytest-cache>=0:devel/py-pytest-cache@${PY_FLAVOR} \
35
		${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
36
		${PYTHON_PKGNAMEPREFIX}pytest-flakes>=0:devel/py-pytest-flakes@${PY_FLAVOR} \
37
		${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
38
		${PYTHON_PKGNAMEPREFIX}sqlalchemy12>=0:databases/py-sqlalchemy12@${PY_FLAVOR} \
39
		${PYTHON_PKGNAMEPREFIX}pytest-translations>=0:devel/py-pytest-translations@${PY_FLAVOR} \
40
		${PYTHON_PKGNAMEPREFIX}pytest-pep8>=0:devel/py-pytest-pep8@${PY_FLAVOR} \
41
		${PYTHON_PKGNAMEPREFIX}flask-peewee>=0:www/py-flask-peewee@${PY_FLAVOR} \
42
		${PYTHON_PKGNAMEPREFIX}pony>=0:databases/py-pony@${PY_FLAVOR} \
43
		${PYTHON_PKGNAMEPREFIX}flask-mongoengine>=0:www/py-flask-mongoengine@${PY_FLAVOR} \
44
		${PYTHON_PKGNAMEPREFIX}pytest-flakes>=0:devel/py-pytest-flakes@${PY_FLAVOR} \
45
		${PYTHON_PKGNAMEPREFIX}pyflakes>=0:devel/py-pyflakes@${PY_FLAVOR}
46
47
USES=		python:3.5+
48
USE_PYTHON=	autoplist concurrent distutils
49
50
TEST_ENV=	PYTHONPATH=${WRKSRC}/src
51
52
NO_ARCH=	yes
53
54
do-test:
55
	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts= \
56
		-k 'not test_disable_register_emails \
57
		and not test_custom_register_tempalate \
58
		and not test_custom_register_url \
59
		and not test_registerable_flag \
60
		and not test_custom_reset_templates \
61
		and not test_custom_reset_url \
62
		and not test_expired_reset_token \
63
		and not test_expired_login_token \
64
		and not test_without_babel \
65
		and not test_password_unicode_password_salt \
66
		and not test_custom_change_url \
67
		and not test_view_configuration \
68
		and not test_template_configuration \
69
		and not test_login_when_unconfirmed \
70
		and not test_passwordless_login_context_processor \
71
		and not test_expired_confirmation_token \
72
		and not test_confirmation_different_user_when_logged_in \
73
		and not test_cannot_reset_password_when_email_is_not_confirmed \
74
		and not test_context_processors \
75
		and not test_custom_change_template \
76
		and not test_disable_change_emails \
77
		and not test_custom_post_change_view \
78
		and not test_context_processors \
79
		and not test_legacy_hash'
80
81
.include <bsd.port.mk>
(-)b/www/py-flask-security/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1576631135
2
SHA256 (Flask-Security-3.0.0.tar.gz) = d61daa5f5a48f89f30f50555872bdf581b2c65804668b0313345cd7beff26432
3
SIZE (Flask-Security-3.0.0.tar.gz) = 160367
(-)b/www/py-flask-security/pkg-descr (+15 lines)
Added Link Here
1
Flask-Security allows you to quickly add common security mechanisms to your
2
Flask application. They include:
3
4
  - Session based authentication
5
  - Role management
6
  - Password hashing
7
  - Basic HTTP authentication
8
  - Token based authentication
9
  - Token based account activation (optional)
10
  - Token based password recovery / resetting (optional)
11
  - User registration (optional)
12
  - Login tracking (optional)
13
  - JSON/Ajax Support
14
15
WWW: https://github.com/mattupstate/flask-security

Return to bug 242617