upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-pyjwt / trunk / PKGBUILD
blob8edebb473261481d1330a98c2fb1215b990e7d1f
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-pyjwt
4 pkgver=2.6.0
5 pkgrel=2
6 pkgdesc='JSON Web Token implementation in Python'
7 arch=('any')
8 url='https://github.com/jpadilla/pyjwt'
9 license=('MIT')
10 depends=('python')
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest' 'python-cryptography')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/jpadilla/pyjwt/archive/$pkgver.tar.gz")
14 sha512sums=('7b3d2aa5a12f51fb6b1137f939cfe6a08519b4d5b83f2c058dc31741e3ec6d7011844c7b426aa44aacf6570f3907a027ca1fe989a0c232e285e158a217f95557')
16 build() {
17   cd pyjwt-$pkgver
18   python setup.py build
21 check() {
22   cd pyjwt-$pkgver
23   pytest
26 package() {
27   cd pyjwt-$pkgver
28   python setup.py install --root="$pkgdir" -O1
29   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/