[arch-commits] Commit in python-flask-caching/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Jun 2 16:26:54 UTC 2020
Date: Tuesday, June 2, 2020 @ 16:26:53
Author: felixonmars
Revision: 638102
archrelease: copy trunk to community-testing-any
Added:
python-flask-caching/repos/community-testing-any/
python-flask-caching/repos/community-testing-any/PKGBUILD
(from rev 638101, python-flask-caching/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-flask-caching/repos/community-testing-any/PKGBUILD (from rev 638101, python-flask-caching/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2020-06-02 16:26:53 UTC (rev 638102)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-flask-caching
+pkgver=1.9.0
+pkgrel=1
+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=('644a5ed453ecb3176979df718b3a364bec2fadddec0f5c3cb800abda76a38df174d3fed4e5f877757f0eb46fba659a4b351ac7bb19cdef7ff4f47a8b3ed4c538')
+
+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