Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jan 2020 09:52:11 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r524687 - in head/www: . py-flask-security
Message-ID:  <202001310952.00V9qBCh005786@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Fri Jan 31 09:52:11 2020
New Revision: 524687
URL: https://svnweb.freebsd.org/changeset/ports/524687

Log:
  [NEW] www/py-flask-security: Simple security for Flask apps
  
  Flask-Security allows you to quickly add common security mechanisms to your
  Flask application. They include:
  
    - Session based authentication
    - Role management
    - Password hashing
    - Basic HTTP authentication
    - Token based authentication
    - Token based account activation (optional)
    - Token based password recovery / resetting (optional)
    - User registration (optional)
    - Login tracking (optional)
    - JSON/Ajax Support
  
  WWW: https://github.com/mattupstate/flask-security
  
  PR:		242617
  Submitted by:	Goran Mekić <meka tilda center>

Added:
  head/www/py-flask-security/
  head/www/py-flask-security/Makefile   (contents, props changed)
  head/www/py-flask-security/distinfo   (contents, props changed)
  head/www/py-flask-security/pkg-descr   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Fri Jan 31 09:40:33 2020	(r524686)
+++ head/www/Makefile	Fri Jan 31 09:52:11 2020	(r524687)
@@ -1640,6 +1640,7 @@
     SUBDIR += py-flask-restful
     SUBDIR += py-flask-restplus
     SUBDIR += py-flask-script
+    SUBDIR += py-flask-security
     SUBDIR += py-flask-smorest
     SUBDIR += py-flask-socketio
     SUBDIR += py-flask-sockets

Added: head/www/py-flask-security/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-flask-security/Makefile	Fri Jan 31 09:52:11 2020	(r524687)
@@ -0,0 +1,81 @@
+# $FreeBSD$
+
+PORTNAME=	flask-security
+PORTVERSION=	3.0.0
+CATEGORIES=	www devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	Flask-Security-${DISTVERSION}
+
+MAINTAINER=	meka@tilda.center
+COMMENT=	Simple security for Flask apps
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest-runner>=0:devel/py-pytest-runner@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}Babel>=0:devel/py-babel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Flask>=0:www/py-flask@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}Flask-Login>=0:www/py-flask-login@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}Flask-Mail>=0:mail/py-flask-mail@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}Flask-Principal>=0:www/py-flask-principal@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}Flask-WTF>=0:www/py-flask-wtf@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}flask-babelex>=0:www/py-flask-babelex@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}itsdangerous>=0:security/py-itsdangerous@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}passlib>=0:security/py-passlib@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Flask-SQLAlchemy>=0:databases/py-flask-sqlalchemy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}bcrypt>=0:security/py-bcrypt@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}check-manifest>=0:devel/py-check-manifest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}coverage>=0:devel/py-coverage@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}isort>=0:devel/py-isort@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mongoengine>=0:databases/py-mongoengine@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pydocstyle>=0:devel/py-pydocstyle@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-cache>=0:devel/py-pytest-cache@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-flakes>=0:devel/py-pytest-flakes@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}sqlalchemy12>=0:databases/py-sqlalchemy12@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-translations>=0:devel/py-pytest-translations@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-pep8>=0:devel/py-pytest-pep8@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}flask-peewee>=0:www/py-flask-peewee@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pony>=0:databases/py-pony@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}flask-mongoengine>=0:www/py-flask-mongoengine@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-flakes>=0:devel/py-pytest-flakes@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyflakes>=0:devel/py-pyflakes@${PY_FLAVOR}
+
+USES=		python:3.5+
+USE_PYTHON=	autoplist concurrent distutils
+
+TEST_ENV=	PYTHONPATH=${WRKSRC}/src
+
+NO_ARCH=	yes
+
+do-test:
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts= \
+		-k 'not test_disable_register_emails \
+		and not test_custom_register_tempalate \
+		and not test_custom_register_url \
+		and not test_registerable_flag \
+		and not test_custom_reset_templates \
+		and not test_custom_reset_url \
+		and not test_expired_reset_token \
+		and not test_expired_login_token \
+		and not test_without_babel \
+		and not test_password_unicode_password_salt \
+		and not test_custom_change_url \
+		and not test_view_configuration \
+		and not test_template_configuration \
+		and not test_login_when_unconfirmed \
+		and not test_passwordless_login_context_processor \
+		and not test_expired_confirmation_token \
+		and not test_confirmation_different_user_when_logged_in \
+		and not test_cannot_reset_password_when_email_is_not_confirmed \
+		and not test_context_processors \
+		and not test_custom_change_template \
+		and not test_disable_change_emails \
+		and not test_custom_post_change_view \
+		and not test_context_processors \
+		and not test_legacy_hash'
+
+.include <bsd.port.mk>

Added: head/www/py-flask-security/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-flask-security/distinfo	Fri Jan 31 09:52:11 2020	(r524687)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1576631135
+SHA256 (Flask-Security-3.0.0.tar.gz) = d61daa5f5a48f89f30f50555872bdf581b2c65804668b0313345cd7beff26432
+SIZE (Flask-Security-3.0.0.tar.gz) = 160367

Added: head/www/py-flask-security/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-flask-security/pkg-descr	Fri Jan 31 09:52:11 2020	(r524687)
@@ -0,0 +1,15 @@
+Flask-Security allows you to quickly add common security mechanisms to your
+Flask application. They include:
+
+  - Session based authentication
+  - Role management
+  - Password hashing
+  - Basic HTTP authentication
+  - Token based authentication
+  - Token based account activation (optional)
+  - Token based password recovery / resetting (optional)
+  - User registration (optional)
+  - Login tracking (optional)
+  - JSON/Ajax Support
+
+WWW: https://github.com/mattupstate/flask-security



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001310952.00V9qBCh005786>