aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-requests-oauthlib/APKBUILD
blob: 635c745838182611eeac936c6c1e179266ed77a0 (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
# Maintainer:
pkgname=py3-requests-oauthlib
_pkgname=requests-oauthlib
pkgver=1.0.0
pkgrel=2
pkgdesc="First-class OAuth library support for Requests"
options="!check" # Requires 'requests-mock'
url="https://pypi.python.org/pypi/requests-oauthlib"
arch="noarch"
license="ISC"
depends="python3 py3-oauthlib py3-requests"
makedepends="py3-setuptools"
checkdepends="py3-mock"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-requests-oauthlib" # Backwards compatibility
provides="py-requests-oauthlib=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	cd "$builddir"
	python3 setup.py build
}

check() {
	cd "$builddir"
	python3 setup.py test
}

package() {
	cd "$builddir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="b1036ca0533383dc5d6297de0cf65c9c705bbdc01b367adba94735424ac262f8e01cc2975da294af31af12c347d4a93b06ac3e18e159a45b3544aa051b2c59c8  requests-oauthlib-1.0.0.tar.gz"