aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
Diffstat (limited to 'community')
-rw-r--r--community/py3-otp/APKBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/community/py3-otp/APKBUILD b/community/py3-otp/APKBUILD
new file mode 100644
index 0000000000..099fb1ec07
--- /dev/null
+++ b/community/py3-otp/APKBUILD
@@ -0,0 +1,27 @@
+# Contributor: Rasmus Thomsen <oss@cogitri.dev>
+# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
+pkgname=py3-otp
+pkgver=2.2.7
+pkgrel=0
+pkgdesc="Python One Time Password Library"
+url="Python One Time Password Library"
+arch="all"
+license="MIT"
+depends="python3"
+makedepends="python3-dev py3-setuptools"
+source="https://pypi.io/packages/source/p/pyotp/pyotp-$pkgver.tar.gz"
+builddir="$srcdir/pyotp-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ python3 setup.py test
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="d8fe8a737c75b1731042ffc7213eb20851fd31ee3583511a8db6c2adb171c63d6f2620d50921997836cbf34c37829d4f0bd44d8955ee66a1bec7e94e2368e19d pyotp-2.2.7.tar.gz"