summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-08-31 13:16:00 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-08-31 13:43:12 (GMT)
commitb57fa5739effccd30190dc4f269b0e87e5c5b172 (patch)
treef57e2eb8dd13e47e3e41fc46124045e79b2480f4 /abs
parentb681ee4916adad73ee57aed015ea15688366b81e (diff)
downloadlinhes_pkgbuild-b57fa5739effccd30190dc4f269b0e87e5c5b172.zip
linhes_pkgbuild-b57fa5739effccd30190dc4f269b0e87e5c5b172.tar.gz
linhes_pkgbuild-b57fa5739effccd30190dc4f269b0e87e5c5b172.tar.bz2
python-requests-cache: initial inclusion. dep of mythnetvision
Diffstat (limited to 'abs')
-rw-r--r--abs/core/python_modules/python-requests-cache/PKGBUILD34
-rw-r--r--abs/core/python_modules/python-requests-cache/__changelog1
2 files changed, 35 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-requests-cache/PKGBUILD b/abs/core/python_modules/python-requests-cache/PKGBUILD
new file mode 100644
index 0000000..b7d9937
--- /dev/null
+++ b/abs/core/python_modules/python-requests-cache/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Christian Rebischke <chris.rebischke[at]archlinux[dot]org>
+
+pkgbase=python-requests-cache
+_pyname=requests-cache
+pkgname=('python2-requests-cache')
+makedepends=('python2' 'python2-setuptools')
+pkgver=0.4.12
+pkgrel=2
+pkgdesc="Persistent cache for requests library"
+arch=('any')
+url="https://github.com/reclosedev/requests-cache"
+license=('BSD')
+source=("${_pyname}-${pkgver}.tar.gz::https://github.com/reclosedev/${_pyname}/archive/v${pkgver}.tar.gz")
+sha512sums=('06d563d59c24f311209b81beb96130b75d1e849e0bb94ad636b3ac269eed7c89fdddfed8da86560473c4463425ea98953d30fb3da05efd614907855f130587fc')
+
+package_python-requests-cache() {
+ depends=('python')
+ cd "${srcdir}/${_pyname}-${pkgver}"
+ python setup.py install -O1 --root="${pkgdir}"
+ install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+
+}
+
+package_python2-requests-cache() {
+ depends=('python2')
+ cd "${srcdir}/${_pyname}-${pkgver}"
+ python2 setup.py install -O1 --root="${pkgdir}"
+ install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+
+}
+
+# vim:set et sw=2 ts=2 tw=79:
diff --git a/abs/core/python_modules/python-requests-cache/__changelog b/abs/core/python_modules/python-requests-cache/__changelog
new file mode 100644
index 0000000..60db758
--- /dev/null
+++ b/abs/core/python_modules/python-requests-cache/__changelog
@@ -0,0 +1 @@
+PKGBUILD: remove py3 stuff