[arch-commits] Commit in python-flask-caching/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Dec 1 14:58:17 UTC 2021
Date: Wednesday, December 1, 2021 @ 14:58:16
Author: felixonmars
Revision: 1059621
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 1059616, python-flask-caching/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-flask-caching/repos/community-staging-any/PKGBUILD (from rev 1059616, python-flask-caching/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-01 14:58:16 UTC (rev 1059621)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-flask-caching
+pkgver=1.10.1
+pkgrel=2
+pkgdesc="Adds caching support to your Flask application"
+url="https://github.com/sh4nks/flask-caching"
+license=('BSD')
+arch=('any')
+depends=('python-flask')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-pytest-cov' 'python-pytest-xprocess' 'python-pylibmc'
+ 'python-redis')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/sh4nks/flask-caching/archive/v$pkgver.tar.gz")
+sha512sums=('d332cb0769547f4f6eca3c3fc6a45f4e105ef7c29c096da7e8281577f786630c493480fe050769f8efa41fe52246dc3a857ca9912fd273a208bc5bea07e7fe37')
+
+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
+}
More information about the arch-commits
mailing list