aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-jwt/APKBUILD
blob: 7558b5cccb3a8e402c66f517462bf031932c2a14 (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
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=py-jwt
_pkgname=PyJWT
pkgver=0.2.1
pkgrel=0
pkgdesc="Python JSON Web Token implementation"
url="https://github.com/progrium/pyjwt"
arch="noarch"
license="MIT"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="500fdbdd4c7b60404063f7d9c2717108  PyJWT-0.2.1.tar.gz"
sha256sums="cfd0fad01a9a57fb4b24e59a82ffd50ddc9c2c4344694ec6ef436ae11d5d18aa  PyJWT-0.2.1.tar.gz"
sha512sums="28f24ae705154e70fd15ed13830b1980b21a37df2fb5acd436d9d0ca4bbaf56bf146131762278a239d5a87585a70c282efd6e5fe13fb00e7fc7f0b6204b15713  PyJWT-0.2.1.tar.gz"