~dricottone/huttese-apk

ref: 06c053e6cd71ee0fbbf30ff91f1a03bb2b0135e8 huttese-apk/sr.ht/py3-pyotp/APKBUILD -rw-r--r-- 728 bytes
06c053e6 — Drew DeVault prometheus/alertmanager: new APKBUILD 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-pyotp
_pkgname=pyotp
pkgver=2.1.1
pkgrel=0
pkgdesc="Python library for generating & verifying one-time passwords"
url="https://pyotp.readthedocs.io"
arch="noarch"
license="MIT"
depends="python3 py3-future"
makedepends="py-setuptools"
source="
	$pkgname-$pkgver.zip::https://github.com/pyotp/${_pkgname}/archive/v${pkgver}.zip
"
builddir="$srcdir/${_pkgname}-${pkgver}"

check() {
	cd "$builddir"
	python3 setup.py check
}

package() {
	cd "$builddir"
	python3 setup.py install --root="$pkgdir" --optimize=1
}

sha512sums="e8fb2de02a1af0e84598cf54b8a3e8b24f20516adc44340a6812c3ab93cdcc289ae951ae2360c52a922811e7ebe6c2697bbf5f8f196db8ee8a17f7fe54946f1b  py3-pyotp-2.1.1.zip"