summaryrefslogtreecommitdiff
path: root/user/py3-requests/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/py3-requests/APKBUILD')
-rw-r--r--user/py3-requests/APKBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/user/py3-requests/APKBUILD b/user/py3-requests/APKBUILD
new file mode 100644
index 000000000..68a449743
--- /dev/null
+++ b/user/py3-requests/APKBUILD
@@ -0,0 +1,30 @@
+# 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.19.1
+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="deef2662227497b472f6e7eb7f0ee468c772069fc66552f71d80e5a12af62a187f8bc6a8a78531915e824c7f277d0db61c1534c89d13d473f68504f0bd6edf47 requests-2.19.1.tar.gz"