# Maintainer: Erich Eckner # Contributor: Abdó Roig-Maranges pkgname=python-jwcrypto _pkgname=${pkgname#*-} pkgver=1.5.6 pkgrel=1 pkgdesc="Python implementation of JWK, JWS, JWE specifications" arch=("any") url="https://github.com/latchset/jwcrypto" license=("LGPL3") depends=( 'python>=3.12' 'python<3.13' 'python-cryptography>=3.4' 'python-typing_extensions>=4.5.0') makedepends=( 'python-setuptools') source=("$_pkgname-$pkgver.tar.gz::https://github.com/latchset/$_pkgname/archive/v$pkgver.tar.gz") sha512sums=('8a20ee05fc6e63fd30742872650511fa0b635a9545223eb5d25d8a11cc65a4c460ce9182b2f30caee99357e8b1f3f0ac08c2c3a6612bb4e7ee5238ef61398bb4') build() { cd "${srcdir}/${_pkgname}-${pkgver}" python setup.py build } package() { cd "${srcdir}/${_pkgname}-${pkgver}" python setup.py install --skip-build --root="${pkgdir}" --optimize=1 rm -Rf "${pkgdir}/usr/share/doc" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }