aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-requests-oauthlib/APKBUILD
blob: d46be0c421ce79eede5f1096fc2f9dd7d2dd848b (plain) (blame)
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
# Maintainer:
pkgname=py3-requests-oauthlib
_pkgname=requests-oauthlib
pkgver=1.2.0
pkgrel=1
pkgdesc="First-class OAuth library support for Requests"
url="https://pypi.python.org/pypi/requests-oauthlib"
arch="noarch"
license="ISC"
depends="python3 py3-oauthlib py3-requests"
makedepends="py3-setuptools"
checkdepends="py3-mock py3-requests-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() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

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

sha512sums="531cbea898b692864134b83479b3a32b0455def8bbd0b808a118bd63d377c4056e8df9a4943fa4048e5b27e2628641d8818d3bbc71dde91522a3be163da1e719  requests-oauthlib-1.2.0.tar.gz"