git: 01703d23f4e6 - main - www/py-flask-simpleldap: add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 18 Nov 2024 22:08:44 UTC
The branch main has been updated by driesm: URL: https://cgit.FreeBSD.org/ports/commit/?id=01703d23f4e67bcd9b5a29d3ad02a875035fad81 commit 01703d23f4e67bcd9b5a29d3ad02a875035fad81 Author: Matthew Wener <matthew@wener.org> AuthorDate: 2024-11-18 21:51:40 +0000 Commit: Dries Michiels <driesm@FreeBSD.org> CommitDate: 2024-11-18 22:08:08 +0000 www/py-flask-simpleldap: add new port LDAP authentication for Flask. PR: 282849 --- www/Makefile | 1 + www/py-flask-simpleldap/Makefile | 47 +++++++++++++++++++++++++++++++++++++++ www/py-flask-simpleldap/distinfo | 3 +++ www/py-flask-simpleldap/pkg-descr | 2 ++ 4 files changed, 53 insertions(+) diff --git a/www/Makefile b/www/Makefile index bd39b966f937..12bccb2c088e 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1682,6 +1682,7 @@ SUBDIR += py-flask-script SUBDIR += py-flask-security SUBDIR += py-flask-session + SUBDIR += py-flask-simpleldap SUBDIR += py-flask-smorest SUBDIR += py-flask-socketio SUBDIR += py-flask-sockets diff --git a/www/py-flask-simpleldap/Makefile b/www/py-flask-simpleldap/Makefile new file mode 100644 index 000000000000..f2a26c4017f4 --- /dev/null +++ b/www/py-flask-simpleldap/Makefile @@ -0,0 +1,47 @@ +PORTNAME= Flask-SimpleLDAP +PORTVERSION= 2.0.0 +CATEGORIES= www python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= matthew@wener.org +COMMENT= LDAP authentication for Flask +WWW= https://github.com/alexferl/flask-simpleldap + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}blinker>=0:devel/py-blinker@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}click>=0:devel/py-click@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}flask>=0:www/py-flask@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}itsdangerous>=0:security/py-itsdangerous@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}markupsafe>=0:textproc/py-markupsafe@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyasn1-modules>=0:devel/py-pyasn1-modules@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyasn1>=0:devel/py-pyasn1@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}python-ldap>=0:net/py-python-ldap@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}werkzeug>=0:www/py-werkzeug@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flask>=0:www/py-flask@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist pep517 pytest + +TEST_ENV= ${MAKE_ENV} \ + PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +NO_ARCH= yes + +PORTDOCS= PKG-INFO README.md + +OPTIONS_DEFINE= DOCS + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR}/ + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + +do-test: + @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v + +.include <bsd.port.mk> diff --git a/www/py-flask-simpleldap/distinfo b/www/py-flask-simpleldap/distinfo new file mode 100644 index 000000000000..4c4107cd6ff2 --- /dev/null +++ b/www/py-flask-simpleldap/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1724809518 +SHA256 (Flask-SimpleLDAP-2.0.0.tar.gz) = d829f8163bae6d61d841707fa8a88bdcaae4862332c1acc13864b24ca82eaf25 +SIZE (Flask-SimpleLDAP-2.0.0.tar.gz) = 8825 diff --git a/www/py-flask-simpleldap/pkg-descr b/www/py-flask-simpleldap/pkg-descr new file mode 100644 index 000000000000..79b9b1ef1676 --- /dev/null +++ b/www/py-flask-simpleldap/pkg-descr @@ -0,0 +1,2 @@ +Flask-SimpleLDAP provides LDAP authentication for Flask and +is compatible with and tested on Python 3.8+.