blob: b399a4ded006859ebcc76d81ebe3f4dfb1f1290c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Anton Kudelin <kudelin at proton dot me>
# Contributor: Cem Aydin <cem.aydin@gmx.ch>
_pyname=flask-jwt-extended
pkgname=python-$_pyname
pkgver=4.6.0
pkgrel=1
arch=(any)
pkgdesc='A Flask extension that provides JWT support (with batteries included)!'
url='https://github.com/vimalloc/flask-jwt-extended'
license=(MIT)
depends=(python-flask python-pyjwt)
makedepends=(python-setuptools python-build python-installer python-wheel)
checkdepends=(python-pytest python-dateutil python-cryptography)
source=($pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz)
sha256sums=('d7415d24049c72a8ad340a653d3202ee31a2db9ceba73d77ab05fdd9cc2e34e4')
build() {
cd "$srcdir/$_pyname-$pkgver"
python -m build \
--wheel \
--no-isolation \
--skip-dependency-check
}
check() {
cd "$srcdir/$_pyname-$pkgver"
python -m venv --system-site-packages test-env
test-env/bin/python -m installer dist/*.whl
test-env/bin/python -m pytest
}
package() {
cd "$srcdir/$_pyname-$pkgver"
python -m installer \
--destdir="$pkgdir" \
--compile-bytecode=2 \
dist/*.whl
install -Dm755 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|