aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-requests-toolbelt/APKBUILD
blob: 569873afa430324c0ca335786a6e53957a8f5e57 (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
# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=py3-requests-toolbelt
_pkgname=toolbelt
pkgver=0.9.1
pkgrel=0
pkgdesc="Useful classes and functions to be used with python-requests"
options="!check" # Requires unpackaged 'betamax' module
url="https://github.com/requests/toolbelt"
arch="noarch"
license="Apache-2.0"
depends="py3-requests"
makedepends="py3-setuptools"
checkdepends="py3-mock py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/requests/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

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

sha512sums="12667056c225ce0bc88a5959660103feed23810890abd3890ef15581aa64c09c0552c3974473e1742cbe6200bd37d6475ad34ec051e83d4fbf0a33f320dbc0cc  py3-requests-toolbelt-0.9.1.tar.gz"