diff options
Diffstat (limited to 'community/py3-jwt/APKBUILD')
-rw-r--r-- | community/py3-jwt/APKBUILD | 46 |
1 files changed, 21 insertions, 25 deletions
diff --git a/community/py3-jwt/APKBUILD b/community/py3-jwt/APKBUILD index 411956bb3d7..b19554f3142 100644 --- a/community/py3-jwt/APKBUILD +++ b/community/py3-jwt/APKBUILD @@ -1,44 +1,40 @@ # Contributor: Eivind Uggedal <eu@eju.no> -# Maintainer: +# Maintainer: Michał Polański <michal@polanski.me> pkgname=py3-jwt -_pkgname=PyJWT -pkgver=1.7.1 -pkgrel=4 +pkgver=2.8.0 +pkgrel=1 pkgdesc="Python3 JSON Web Token implementation" url="https://github.com/jpadilla/pyjwt" -arch="noarch" license="MIT" -depends="python3" -makedepends="py3-setuptools" +arch="noarch" +makedepends="py3-gpep517 py3-installer py3-setuptools py3-wheel" checkdepends="py3-pytest" -subpackages="$pkgname-cli" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz - no-cov-report.patch - " -builddir="$srcdir/$_pkgname-$pkgver" +subpackages="$pkgname-pyc" +source="https://github.com/jpadilla/pyjwt/archive/$pkgver/py3-jwt-$pkgver.tar.gz" +builddir="$srcdir/pyjwt-$pkgver" replaces="py-jwt" # Backwards compatibility provides="py-jwt=$pkgver-r$pkgrel" # Backwards compatibility +# secfixes: +# 2.4.0-r0: +# - CVE-2022-29217 + build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - python3 -m pytest . + pytest } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" -} - -cli() { - pkgdesc="$pkgdesc (CLI utility)" - depends="py3-jwt=$pkgver-r$pkgrel" - - mkdir -p "$subpkgdir"/usr/ - mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ + python3 -m installer -d "$pkgdir" \ + .dist/PyJWT-$pkgver-py3-none-any.whl } -sha512sums="70cd38127b6848933992c8b88303725ef71bfb430ad42eb63247e549b0bdab2a194137349d43ab02a1c97212dbc89f447ee3f0c5403dd14632b8b4b6b9235fc4 PyJWT-1.7.1.tar.gz -886877c4e40005d254abf6f00389e7e69e1a781119c29da7632e3f475b526e15b2387ab1bc5bade07234932c3a7396c06298540bdd1596a79a4a5e62b64517fc no-cov-report.patch" +sha512sums=" +9d631c20c5207d5ab3137c9d56825f9e197688181abae4f3d6aac766530a35e07a2dfd5e3ba6e530dd5a29a27f54e961cb01075f3bc831b73816aa7c357eb0d4 py3-jwt-2.8.0.tar.gz +" |