git: d8312662f40c - main - www/py-djangosaml2: New port

From: Richard Gallamore <ultima_at_FreeBSD.org>
Date: Mon, 04 Dec 2023 14:50:32 UTC
The branch main has been updated by ultima:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d8312662f40ca43e370b3b0cc1c8ddc86eb46f41

commit d8312662f40ca43e370b3b0cc1c8ddc86eb46f41
Author:     Richard Gallamore <ultima@FreeBSD.org>
AuthorDate: 2023-12-04 14:48:29 +0000
Commit:     Richard Gallamore <ultima@FreeBSD.org>
CommitDate: 2023-12-04 14:50:04 +0000

    www/py-djangosaml2: New port
    
    A Django application that builds a Fully Compliant
    SAML2 Service Provider on top of PySAML2 library.
    Djangosaml2 protects your project with a SAML2 SSO
    Authentication.
---
 www/Makefile                 |  1 +
 www/py-djangosaml2/Makefile  | 22 ++++++++++++++++++++++
 www/py-djangosaml2/distinfo  |  3 +++
 www/py-djangosaml2/pkg-descr |  4 ++++
 4 files changed, 30 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index a5e566896db7..bfe0a55fd042 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1633,6 +1633,7 @@
     SUBDIR += py-djangorestframework-csv
     SUBDIR += py-djangorestframework-filters
     SUBDIR += py-djangorestframework-xml
+    SUBDIR += py-djangosaml2
     SUBDIR += py-draftjs-exporter
     SUBDIR += py-drf-spectacular
     SUBDIR += py-drf-spectacular-sidecar
diff --git a/www/py-djangosaml2/Makefile b/www/py-djangosaml2/Makefile
new file mode 100644
index 000000000000..acd5e72b5d2a
--- /dev/null
+++ b/www/py-djangosaml2/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	djangosaml2
+PORTVERSION=	1.8.0
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	ultima@FreeBSD.org
+COMMENT=	Pysaml2 integration for Django
+WWW=		https://github.com/IdentityPython/djangosaml2
+
+LICENSE=	APACHE20
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django32>=3.2:www/py-django32@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pysaml2>=6.5.1:security/py-pysaml2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}defusedxml>=0.4.1:devel/py-defusedxml@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/py-djangosaml2/distinfo b/www/py-djangosaml2/distinfo
new file mode 100644
index 000000000000..37de561aee22
--- /dev/null
+++ b/www/py-djangosaml2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1701157824
+SHA256 (djangosaml2-1.8.0.tar.gz) = e1e9997da129b8e76440ca908d72e9503f35da43558f738252a1861f5a3c9427
+SIZE (djangosaml2-1.8.0.tar.gz) = 56182
diff --git a/www/py-djangosaml2/pkg-descr b/www/py-djangosaml2/pkg-descr
new file mode 100644
index 000000000000..343274aa3bc1
--- /dev/null
+++ b/www/py-djangosaml2/pkg-descr
@@ -0,0 +1,4 @@
+A Django application that builds a Fully Compliant
+SAML2 Service Provider on top of PySAML2 library.
+Djangosaml2 protects your project with a SAML2 SSO
+Authentication.