summaryrefslogblamecommitdiff
path: root/user/py3-requests/APKBUILD
blob: 1746a8256c8ab97d4e0e615496332b520439bad5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12




                                                         
             





                                                
                                                              















                                                                                                          
                                                                                                                                                                     
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: zlg <zlg+adelie@zlg.space>
pkgname=py3-requests
_pkgname=${pkgname#py3-}
pkgver=2.21.0
pkgrel=0
pkgdesc="A HTTP request library for Python"
url="http://www.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() {
	cd "$builddir"
	python3 setup.py build
}

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

sha512sums="385e1d80993a21c09e7c4682500ca8c24155962ba41ecd8e73612722b2ff6618b736e827fc48ad1683b0d2bc7a420cfe680f5107860aca52656ef777f1d60104  requests-2.21.0.tar.gz"