summaryrefslogtreecommitdiff
path: root/user/py3-requests/APKBUILD
blob: 947eb68f6bfae05c5468a1d152df0a2b4b323c76 (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
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Contributor: zlg <zlg+adelie@zlg.space>
# Maintainer:
pkgname=py3-requests
_pkgname=${pkgname#py3-}
pkgver=2.22.0
pkgrel=0
pkgdesc="A HTTP request library for Python"
url="https://2.python-requests.org/"
arch="noarch"
license="Apache-2.0"
options="!check" # tests connect to remote sites
depends="python3 py3-chardet py3-idna py3-certifi py3-urllib3"
makedepends="python3-dev"
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

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

sha512sums="8b8e9da8a0c816fb4ff39be89ac7e1a9d5a99503ed93e44a0d78b28818f1c0eb253b151972a144151a616ba1b4bc5595245458a8268c5161391db54f740ac9a5  requests-2.22.0.tar.gz"