diff options
Diffstat (limited to 'community/py3-jwt/APKBUILD')
-rw-r--r-- | community/py3-jwt/APKBUILD | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/community/py3-jwt/APKBUILD b/community/py3-jwt/APKBUILD index d01ab74fba5..b19554f3142 100644 --- a/community/py3-jwt/APKBUILD +++ b/community/py3-jwt/APKBUILD @@ -1,15 +1,15 @@ # Contributor: Eivind Uggedal <eu@eju.no> # Maintainer: Michał Polański <michal@polanski.me> pkgname=py3-jwt -pkgver=2.4.0 -pkgrel=0 +pkgver=2.8.0 +pkgrel=1 pkgdesc="Python3 JSON Web Token implementation" url="https://github.com/jpadilla/pyjwt" license="MIT" arch="noarch" -depends="python3" -makedepends="py3-setuptools" +makedepends="py3-gpep517 py3-installer py3-setuptools py3-wheel" checkdepends="py3-pytest" +subpackages="$pkgname-pyc" source="https://github.com/jpadilla/pyjwt/archive/$pkgver/py3-jwt-$pkgver.tar.gz" builddir="$srcdir/pyjwt-$pkgver" @@ -21,7 +21,9 @@ provides="py-jwt=$pkgver-r$pkgrel" # Backwards compatibility # - CVE-2022-29217 build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { @@ -29,9 +31,10 @@ check() { } package() { - python3 setup.py install --root="$pkgdir" --skip-build + python3 -m installer -d "$pkgdir" \ + .dist/PyJWT-$pkgver-py3-none-any.whl } sha512sums=" -c1044de436394d7758bdfcc9256a1ff4534881b9e5cd29b6055bcfed349b4d0d3e0b802a8163740adf63f624394e7ef7f61a91e3b49f7bae914165a2549ce771 py3-jwt-2.4.0.tar.gz +9d631c20c5207d5ab3137c9d56825f9e197688181abae4f3d6aac766530a35e07a2dfd5e3ba6e530dd5a29a27f54e961cb01075f3bc831b73816aa7c357eb0d4 py3-jwt-2.8.0.tar.gz " |