summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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