aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-oauthlib/APKBUILD
blob: 259e1860dd9d2acd9fbe3f12f99b9a4cc0955123 (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
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=py-oauthlib
_pkgname=${pkgname#py-}
pkgver=1.1.1
pkgrel=0
pkgdesc="A Python implementation of the OAuth request-signing logic"
url="https://github.com/idan/oauthlib"
arch="noarch"
license="BSD"
depends="python py-crypto py-jwt"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="oauthlib-$pkgver.tar.gz::https://github.com/idan/oauthlib/archive/$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="b8ab57d6b88a98b09baf7acf26112646  oauthlib-1.1.1.tar.gz"
sha256sums="8f33925202caeb681eaf0eead5552487f8c9026c241dbed3084a5462c52ac693  oauthlib-1.1.1.tar.gz"
sha512sums="5a5db7e054b38d88a8b04c58ec028f8a007f3147d041f9683a1080309cc89c278787df70ec6089d9a0096cc14d5b61eddbfc248e0399c07f8aeccb39717b4c27  oauthlib-1.1.1.tar.gz"