aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-03-09 13:44:24 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-03-09 14:05:15 +0000
commit109459581b889e4cb031285f49f189f387aa76fa (patch)
treefc9aaad93b49cd47042ad9979925d19cf707834b
parent34c201e051eb56adc8267e481ab188cadfc155e5 (diff)
downloadports-109459581b889e4cb031285f49f189f387aa76fa.tar.gz
ports-109459581b889e4cb031285f49f189f387aa76fa.zip
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.
-rw-r--r--www/Makefile1
-rw-r--r--www/py-dj42-django-otp/Makefile23
-rw-r--r--www/py-dj42-django-otp/distinfo3
-rw-r--r--www/py-dj42-django-otp/pkg-descr10
4 files changed, 37 insertions, 0 deletions
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.