freebsd-ports/security/py-flask-saml/Makefile
Po-Chuan Hsieh 5cd76fde8b
security/py-flask-saml: Fix build with Python 3.9+
- Change RUN_DEPENDS from py-pysaml2 to py-pysaml26
- Bump PORTREVISION for dependency change

PR:		256232
Reported by:	John W. O'Brien <john@saltant.com>
2021-06-10 22:46:24 +08:00

29 lines
739 B
Makefile

PORTNAME= Flask-SAML
PORTVERSION= 0.4.4
PORTREVISION= 1
CATEGORIES= security www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= john@saltant.com
COMMENT= SAML authentication for Flask web apps
LICENSE= APACHE20
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Flask>=0.8.0:www/py-flask@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}blinker>=1.1:devel/py-blinker@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist distutils
NO_ARCH= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 30900
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pysaml24>=4.0.0<5:security/py-pysaml24@${PY_FLAVOR}
.else
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pysaml26>=5.1.0<6.20:security/py-pysaml26@${PY_FLAVOR}
.endif
.include <bsd.port.post.mk>