projects/aports·blob master · refs

41 lines · 1.3 KiB

1# Contributor: Rejah Rehim <[email protected]>
2# Contributor: Antoine Martin (ayakael) <[email protected]>
3# Maintainer: Antoine Martin (ayakael) <[email protected]>
4pkgname=py3-python-jwt
5_pkgname=python_jwt
6pkgver=4.1.0
7pkgrel=3
8pkgdesc="Module for generating and verifying JSON Web Tokens"
9url="https://github.com/davedoesdev/python-jwt"
10arch="noarch"
11license="MIT"
12depends="py3-jwcrypto"
13makedepends="py3-gpep517 py3-setuptools py3-wheel"
14checkdepends="py3-pyvows py3-gevent py3-coverage py3-mock npm"
15subpackages="$pkgname-pyc"
16source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
17builddir="$srcdir"/$_pkgname-$pkgver
18options="!check" # Test failure due to being too old
19
20build() {
21 gpep517 build-wheel \
22 --wheel-dir .dist \
23 --output-fd 3 3>&1 >&2
24}
25
26check() {
27 python3 -m venv --clear --without-pip --system-site-packages .testenv
28 .testenv/bin/python3 -m installer .dist/*.whl
29 npm install jose
30 msg "Running pyvows tests (this will take a while)"
31 .testenv/bin/python3 -m test.run.run_pyvows --progress test
32}
33
34package() {
35 python3 -m installer -d "$pkgdir" \
36 .dist/*.whl
37}
38
39sha512sums="
40fb6f39723c60659e09915ee36b2742974d73353e9026c1ac536d3256bd7bff55b596b68af51a882a7e8c52b9caf960c3888a417cc0361d0edd313f9167fabb55 python_jwt-4.1.0.tar.gz
41"