aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-requests-cache/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-requests-cache/APKBUILD')
-rw-r--r--community/py3-requests-cache/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/community/py3-requests-cache/APKBUILD b/community/py3-requests-cache/APKBUILD
new file mode 100644
index 0000000000..51d40eedfc
--- /dev/null
+++ b/community/py3-requests-cache/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Philipp Glaum <p@pglaum.de>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=py3-requests-cache
+pkgver=0.6.3
+pkgrel=0
+pkgdesc="Persistent cache for requests library"
+url="https://pypi.org/project/requests-cache/"
+arch="noarch"
+license="BSD-3-Clause"
+depends="
+ py3-requests
+ py3-url-normalize
+ python3
+ "
+makedepends="py3-setuptools"
+checkdepends="
+ py3-itsdangerous
+ py3-mock
+ py3-pytest
+ py3-requests-mock
+ py3-timeout-decorator
+ "
+source="https://pypi.python.org/packages/source/r/requests-cache/requests-cache-$pkgver.tar.gz"
+builddir="$srcdir/requests-cache-$pkgver"
+
+prepare() {
+ default_prepare
+ # Invoke python3
+ sed -i "s|os.system('python %s' % test)|os.system('python3 %s' % test)|" setup.py
+}
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ # integration tests skipped as they require running databases
+ pytest --ignore tests/integration
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="d2ebba52b21d4c733f3fba8fbdb9b839197bb2aacfa0b272d41dd06f8be7766c8eedcc19c12d30e901eebdd595beaa02a6c2d303b54e23069a3635f77217c2df requests-cache-0.6.3.tar.gz"