aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2023-07-29 02:29:20 +0000
committerpsykose <alice@ayaya.dev>2023-07-29 02:29:20 +0000
commitcc8d0641252620400fb28a94ed1d166a1ced68a4 (patch)
treee4517e995d2f7c3c3d01744079328052da0b02c2
parent7631bdfe85c745f5a1ea8b180318312ad1c7221a (diff)
community/py3-otp: upgrade to 2.9.0
-rw-r--r--community/py3-otp/APKBUILD27
1 files changed, 15 insertions, 12 deletions
diff --git a/community/py3-otp/APKBUILD b/community/py3-otp/APKBUILD
index 0ee75441424..76bf04353ff 100644
--- a/community/py3-otp/APKBUILD
+++ b/community/py3-otp/APKBUILD
@@ -1,30 +1,33 @@
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-otp
-pkgver=2.8.0
-pkgrel=1
+pkgver=2.9.0
+pkgrel=0
pkgdesc="Python One Time Password Library"
url="https://github.com/pyauth/pyotp"
arch="noarch"
license="MIT"
-depends="python3"
-makedepends="python3-dev py3-setuptools"
+makedepends="
+ py3-gpep517
+ py3-setuptools
+ py3-wheel
+ "
subpackages="$pkgname-pyc"
-source="https://pypi.io/packages/source/p/pyotp/pyotp-$pkgver.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/pyauth/pyotp/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/pyotp-$pkgver"
+options="!check" # no tests
build() {
- python3 setup.py build
-}
-
-check() {
- python3 setup.py test
+ gpep517 build-wheel \
+ --wheel-dir .dist \
+ --output-fd 3 3>&1 >&2
}
package() {
- python3 setup.py install --skip-build --root="$pkgdir"
+ python3 -m installer -d "$pkgdir" \
+ .dist/*.whl
}
sha512sums="
-f4e6c857833c7c994a64586bb495b48935752d0fa9d90edbdcce899ebce10fc0ac13ab03c439ea81f1c0fcfc4adafbf2c42ee8c4fa4afdd662c30d5be164c9b2 pyotp-2.8.0.tar.gz
+d2be19a91ffd07cd0e409dd6ab5406f9d81b4ad555d142e8c83cf797fb80ede8aa17df68abab95dc339b327b461783f36db26b67bf360464c6c7fda75ca1c3b9 py3-otp-2.9.0.tar.gz
"