summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/Makefile1
-rw-r--r--security/py-pyotp/Makefile21
-rw-r--r--security/py-pyotp/distinfo2
-rw-r--r--security/py-pyotp/pkg-descr3
4 files changed, 27 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index 00e39babbd91..1bcb1e27d060 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -856,6 +856,7 @@
SUBDIR += py-pymacaroons-pynacl
SUBDIR += py-pyme
SUBDIR += py-pynacl
+ SUBDIR += py-pyotp
SUBDIR += py-pyptlib
SUBDIR += py-pysaml2
SUBDIR += py-pyscard
diff --git a/security/py-pyotp/Makefile b/security/py-pyotp/Makefile
new file mode 100644
index 000000000000..b72e72c0910d
--- /dev/null
+++ b/security/py-pyotp/Makefile
@@ -0,0 +1,21 @@
+# $FreeBSD$
+
+PORTNAME= pyotp
+PORTVERSION= 2.0.1
+CATEGORIES= security
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= vlad-fbsd@acheronmedia.com
+COMMENT= Python One Time Password Library
+
+LICENSE= MIT
+
+USES= python
+USE_PYTHON= distutils autoplist
+NO_ARCH= yes
+
+do-test:
+ @(cd ${WRKSRC}/${PORTNAME} && ${PYTHON_CMD} test.py)
+
+.include <bsd.port.mk>
diff --git a/security/py-pyotp/distinfo b/security/py-pyotp/distinfo
new file mode 100644
index 000000000000..3ab192518194
--- /dev/null
+++ b/security/py-pyotp/distinfo
@@ -0,0 +1,2 @@
+SHA256 (pyotp-2.0.1.tar.gz) = d08ebc8a1083aff63a62dc702df26c460b5d2ee4badce6e6c7566e5390078667
+SIZE (pyotp-2.0.1.tar.gz) = 8118
diff --git a/security/py-pyotp/pkg-descr b/security/py-pyotp/pkg-descr
new file mode 100644
index 000000000000..e9848a10b9d2
--- /dev/null
+++ b/security/py-pyotp/pkg-descr
@@ -0,0 +1,3 @@
+PyOTP is a Python library for generating and verifying one-time passwords. It
+can be used to implement two-factor (2FA) or multi-factor (MFA) authentication
+methods in web applications and in other systems that require users to log in.