Date: Wednesday, April 12, 2023 @ 18:23:04
Author: arojas
Revision: 1445010
archrelease: copy trunk to community-staging-any
Added:
python-flask-caching/repos/community-staging-any/
python-flask-caching/repos/community-staging-any/PKGBUILD
(from rev 1445009, python-flask-caching/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-flask-caching/repos/community-staging-any/PKGBUILD (from rev
1445009, python-flask-caching/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-12 18:23:04 UTC (rev 1445010)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-flask-caching
+pkgver=2.0.2
+pkgrel=2
+pkgdesc="Adds caching support to your Flask application"
+url="https://github.com/sh4nks/flask-caching"
+license=('BSD')
+arch=('any')
+depends=('python-flask' 'python-cachelib')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-pytest-cov'
'python-pytest-xprocess'
+ 'python-pylibmc' 'python-redis' 'memcached' 'python-asgiref')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/sh4nks/flask-caching/archive/v$pkgver.tar.gz")
+sha512sums=('b019c3e74ebb65bb34eb08cdc886a70694ea218116c84ff3e57e3167da23bef1d50baa94c747557784e440eee5166084a4cdaa9082afe3b914ed012ff143a4c4')
+
+prepare() {
+ cd flask-caching-$pkgver
+ sed -i 's/< *2.6/<3/' setup.py
+}
+
+build() {
+ cd flask-caching-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd flask-caching-$pkgver
+ python setup.py pytest
+}
+
+package() {
+ cd flask-caching-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}