aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-jwt/APKBUILD
blob: ffd31acd1399c760b241b703e3056c46a90115f6 (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
# Contributor: Eivind Uggedal <eu@eju.no>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-jwt
pkgver=2.3.0
pkgrel=0
pkgdesc="Python3 JSON Web Token implementation"
url="https://github.com/jpadilla/pyjwt"
license="MIT"
arch="noarch"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
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

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --root="$pkgdir" --skip-build
}

sha512sums="
1178ea8067f206c69ba03c6124f2dd0287fb014aa4e81472657992b547bc54c783b0e04fc2e285367e6c673394546cb2c50afee6b4d75c020d18925438f324b6  py3-jwt-2.3.0.tar.gz
"