git: dcdc9494db92 - main - www/py-onetimepass: New port: Module for generating and validating HOTP and TOTP tokens

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 26 Dec 2022 20:08:02 UTC
The branch main has been updated by yuri:

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

commit dcdc9494db92ab3127fbe18f1e26aa42738c2c0a
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-12-26 20:05:53 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-12-26 20:07:50 +0000

    www/py-onetimepass: New port: Module for generating and validating HOTP and TOTP tokens
---
 www/Makefile                 |  1 +
 www/py-onetimepass/Makefile  | 21 +++++++++++++++++++++
 www/py-onetimepass/distinfo  |  3 +++
 www/py-onetimepass/pkg-descr |  1 +
 4 files changed, 26 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 48a69e98cb62..6059870b367b 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1690,6 +1690,7 @@
     SUBDIR += py-mwoauth
     SUBDIR += py-nevow
     SUBDIR += py-notebook
+    SUBDIR += py-onetimepass
     SUBDIR += py-openbrokerapi
     SUBDIR += py-pafy
     SUBDIR += py-paste
diff --git a/www/py-onetimepass/Makefile b/www/py-onetimepass/Makefile
new file mode 100644
index 000000000000..7fb1711ec94a
--- /dev/null
+++ b/www/py-onetimepass/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	onetimepass
+DISTVERSION=	1.0.1
+CATEGORIES=	www python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Module for generating and validating HOTP and TOTP tokens
+WWW=		https://github.com/tadeck/onetimepass/
+
+LICENSE=	MIT
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils autoplist
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/py-onetimepass/distinfo b/www/py-onetimepass/distinfo
new file mode 100644
index 000000000000..558ef62e5034
--- /dev/null
+++ b/www/py-onetimepass/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1672081898
+SHA256 (onetimepass-1.0.1.tar.gz) = a569dac076d6e3761cbc55e36952144a637ca1b075c6d509de1c1dbc5e7f6a27
+SIZE (onetimepass-1.0.1.tar.gz) = 6046
diff --git a/www/py-onetimepass/pkg-descr b/www/py-onetimepass/pkg-descr
new file mode 100644
index 000000000000..c0e73e06ec91
--- /dev/null
+++ b/www/py-onetimepass/pkg-descr
@@ -0,0 +1 @@
+One-time password library for HMAC-based (HOTP) and time-based (TOTP) passwords.