summaryrefslogtreecommitdiff
path: root/user/py3-requests/APKBUILD
diff options
context:
space:
mode:
authorzlg <zlg@zlg.space>2018-11-21 03:22:01 -0800
committerzlg <zlg@zlg.space>2018-11-21 03:35:29 -0800
commit3a5b54c55fd97c6c2c94fbf40bb202ba2442ff32 (patch)
tree7a19a7f5d41ea59ba917c1a2cff49972ba0cf97e /user/py3-requests/APKBUILD
parentb54e41a457e6233dc51f17322b3ce61a1c6a8f79 (diff)
downloadpackages-3a5b54c55fd97c6c2c94fbf40bb202ba2442ff32.tar.gz
packages-3a5b54c55fd97c6c2c94fbf40bb202ba2442ff32.tar.bz2
packages-3a5b54c55fd97c6c2c94fbf40bb202ba2442ff32.tar.xz
packages-3a5b54c55fd97c6c2c94fbf40bb202ba2442ff32.zip
user/py3-requests: new package
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..87e93afb8
--- /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="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"