aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-requests/APKBUILD
blob: 629971201d1e6377a0df5ca101c975586fe4492d (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
36
37
38
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-requests
_pkgname=requests
pkgver=2.25.1
pkgrel=0
pkgdesc="HTTP request library for Python3"
url="http://www.python-requests.org/"
arch="noarch"
license="Apache-2.0"
# Requirements for tests are not available in main
options="!check"
depends="python3 py3-chardet py3-idna py3-urllib3"
makedepends="py3-setuptools"
# certs.patch forces requests to use the system certificate store by default,
# and eliminates the certffi dependency. Thanks to Eli Schwartz of Arch Linux
# for the recommendation.
source="
	https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
	certs.patch
	0001-don-t-depend-on-certifi.patch
"
builddir="$srcdir/$_pkgname-$pkgver"

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

build() {
	python3 setup.py build
}

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

sha512sums="ca6b0a257b448a999cade0ae173c29cddc9cfffb319d16fc3d051d3e1cd77161536e3cab279b3cba59c60d29d7864a9281c1fa1f689ce48d3bce2ca9f1cd8d45  requests-2.25.1.tar.gz
424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3  certs.patch
717b031b837cdbf507fef47b9408ed9c607f82cdc5b786172626e98cb1ac666cd2fb9fafc541a60c551a3fdd22a437056d8faf57fd6b451e34c562d673bee0c6  0001-don-t-depend-on-certifi.patch"