aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-requests-oauthlib/APKBUILD
blob: 3b96cdde76cbf9ba471776d8709266d95766861f (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: Peter Bui <pnutzh4x0r@gmail.com>
pkgname=py-requests-oauthlib
_pkgname=requests-oauthlib
pkgver=0.5.0
pkgrel=0
pkgdesc="First-class OAuth library support for Requests"
url="https://pypi.python.org/pypi/requests-oauthlib"
arch="noarch"
license="GPL"
depends="python py-requests py-oauthlib"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.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="139a17c495fb593b5842634faf72ebb0  requests-oauthlib-0.5.0.tar.gz"
sha256sums="658d9aba85338be8c1d1532c9fb5807b381dc7166e469ff0f62fcaa4240d9eb8  requests-oauthlib-0.5.0.tar.gz"
sha512sums="3e68a721df07a2aa21c9a730683473d2e48709a3c8dce794c8c15547017288c88fa2450a534b464d19407eccfca1a7d534211c14ee4f3d49d5ba4c3339510aec  requests-oauthlib-0.5.0.tar.gz"