aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-cachelib/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-cachelib/APKBUILD')
-rw-r--r--community/py3-cachelib/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/community/py3-cachelib/APKBUILD b/community/py3-cachelib/APKBUILD
new file mode 100644
index 00000000000..c3e7487eab8
--- /dev/null
+++ b/community/py3-cachelib/APKBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Simon Rupf <simon@rupf.net>
+pkgname=py3-cachelib
+_pkgname=cachelib
+pkgver=0.13.0
+pkgrel=0
+pkgdesc="A collection of cache libraries in the same API interface. Extracted from Werkzeug."
+url="https://cachelib.readthedocs.io/"
+arch="noarch"
+license="BSD-3-Clause"
+depends="python3"
+makedepends="py3-gpep517 py3-installer py3-setuptools py3-wheel"
+checkdepends="py3-boto3 py3-pytest-xprocess py3-pytest"
+subpackages="$pkgname-pyc"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
+ disable-mongo-tests.patch
+ "
+builddir="$srcdir"/$_pkgname-$pkgver
+
+build() {
+ gpep517 build-wheel \
+ --wheel-dir .dist \
+ --output-fd 3 3>&1 >&2
+}
+
+check() {
+ python3 -m venv --clear --without-pip --system-site-packages .testenv
+ .testenv/bin/python3 -m installer .dist/*.whl
+ .testenv/bin/python3 -m pytest --deselect tests/test_dynamodb_cache.py
+}
+
+package() {
+ python3 -m installer --destdir="$pkgdir" .dist/*.whl
+}
+
+sha512sums="
+09604fdd03f84a207770313192898087fdd724999be93b08e61c463b793611783ea70b18afbd89e10c655d227108bebb5a192c7a8d5c241bc94209ff51f7b338 cachelib-0.13.0.tar.gz
+8b237ed9d06ef43adcf561c12d0c5768a43f963e866551c49e26d8eeaff55c7bf007b03cf468107bc67467fedc3898e4382e8e7c091e5c91f6d426a21044df36 disable-mongo-tests.patch
+"