1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

www/py-flask-simpleldap: add new port

LDAP authentication for Flask.

PR:	282849
This commit is contained in:
Matthew Wener 2024-11-18 22:51:40 +01:00 committed by Dries Michiels
parent add8c13c2a
commit 01703d23f4
4 changed files with 53 additions and 0 deletions

View File

@ -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

View File

@ -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>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1724809518
SHA256 (Flask-SimpleLDAP-2.0.0.tar.gz) = d829f8163bae6d61d841707fa8a88bdcaae4862332c1acc13864b24ca82eaf25
SIZE (Flask-SimpleLDAP-2.0.0.tar.gz) = 8825

View File

@ -0,0 +1,2 @@
Flask-SimpleLDAP provides LDAP authentication for Flask and
is compatible with and tested on Python 3.8+.