Skip to content

Commit

Permalink
www/py-dj42-django-otp: Add py-dj42-django-otp 1.3.0 (copied from py-…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
sunpoet committed Mar 9, 2024
1 parent 34c201e commit 1094595
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions www/Makefile
Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions 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>
3 changes: 3 additions & 0 deletions 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
10 changes: 10 additions & 0 deletions 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.

0 comments on commit 1094595

Please sign in to comment.