git: 109459581b88 - main - www/py-dj42-django-otp: Add py-dj42-django-otp 1.3.0 (copied from py-django-otp)

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 09 Mar 2024 14:09:45 UTC
The branch main has been updated by sunpoet:

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

commit 109459581b889e4cb031285f49f189f387aa76fa
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-03-09 13:44:24 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-03-09 14:05:15 +0000

    www/py-dj42-django-otp: Add py-dj42-django-otp 1.3.0 (copied from py-django-otp)
    
    This project makes it easy to add support for one-time passwords (OTPs) to
    Django. It can be integrated at various levels, depending on how much
    customization is required. It integrates with django.contrib.auth, although it
    is not a Django authentication backend. The primary target is developers wishing
    to incorporate OTPs into their Django projects as a form of two-factor
    authentication.
    
    Several simple OTP plugins are included and more are available separately. This
    package also includes an implementation of OATH HOTP and TOTP for convenience,
    as these are standard OTP algorithms used by multiple plugins.
---
 www/Makefile                     |  1 +
 www/py-dj42-django-otp/Makefile  | 23 +++++++++++++++++++++++
 www/py-dj42-django-otp/distinfo  |  3 +++
 www/py-dj42-django-otp/pkg-descr | 10 ++++++++++
 4 files changed, 37 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index c21724837f7d..27705c713fc3 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1510,6 +1510,7 @@
     SUBDIR += py-dj42-django-modelcluster
     SUBDIR += py-dj42-django-mptt
     SUBDIR += py-dj42-django-multiselectfield
+    SUBDIR += py-dj42-django-otp
     SUBDIR += py-dj42-django-prometheus
     SUBDIR += py-dj42-django-redis
     SUBDIR += py-dj42-django-rich
diff --git a/www/py-dj42-django-otp/Makefile b/www/py-dj42-django-otp/Makefile
new file mode 100644
index 000000000000..db39b72684a5
--- /dev/null
+++ b/www/py-dj42-django-otp/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	django-otp
+PORTVERSION=	1.3.0
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+DISTNAME=	django_otp-${PORTVERSION}
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}dj42-
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Pluggable framework for adding two-factor authentication to Django
+WWW=		https://github.com/django-otp/django-otp
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django42>=3.2:www/py-django42@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/py-dj42-django-otp/distinfo b/www/py-dj42-django-otp/distinfo
new file mode 100644
index 000000000000..24ad9dd7ee61
--- /dev/null
+++ b/www/py-dj42-django-otp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1709390338
+SHA256 (django_otp-1.3.0.tar.gz) = 8f4156a3c14ce2aaa31379385eadf388925cd50fc4b5d20a3b944f454c98ff7c
+SIZE (django_otp-1.3.0.tar.gz) = 69013
diff --git a/www/py-dj42-django-otp/pkg-descr b/www/py-dj42-django-otp/pkg-descr
new file mode 100644
index 000000000000..9e6d14ea948c
--- /dev/null
+++ b/www/py-dj42-django-otp/pkg-descr
@@ -0,0 +1,10 @@
+This project makes it easy to add support for one-time passwords (OTPs) to
+Django. It can be integrated at various levels, depending on how much
+customization is required. It integrates with django.contrib.auth, although it
+is not a Django authentication backend. The primary target is developers wishing
+to incorporate OTPs into their Django projects as a form of two-factor
+authentication.
+
+Several simple OTP plugins are included and more are available separately. This
+package also includes an implementation of OATH HOTP and TOTP for convenience,
+as these are standard OTP algorithms used by multiple plugins.