summaryrefslogtreecommitdiff
path: root/user/py3-urllib3/APKBUILD
blob: 68ea652b25eb1fe457dfc451aeeebf9d893bcb5a (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
# Contributor: Yura Kushnir <kushnir.yura@gmail.com>
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: zlg <zlg+adelie@zlg.space>
pkgname=py3-urllib3
_pkgname=${pkgname#py3-}
pkgver=1.24.1
pkgrel=0
pkgdesc="HTTP library with thread-safe connection pooling, file post, and more"
url="https://github.com/shazow/urllib3"
arch="noarch"
options="!check" # needs tornado
license="MIT"
depends="python3 py3-certifi py3-cryptography py3-idna py3-openssl py3-pysocks"
makedepends="python3-dev"
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/urllib3/urllib3/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

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

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

sha512sums="2f5453cf0ec1b65de9a9fca0fdb45664f7481507c875b7115c063cb177628b4b611377e588508ab8433e0797fc78b60fd3ea5cc5ac0a3f105d36bfff9a56f1f4  py3-urllib3-1.24.1.tar.gz"