[arch-commits] Commit in python-flask-caching/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 25 09:12:44 UTC 2019


    Date: Monday, November 25, 2019 @ 09:12:43
  Author: felixonmars
Revision: 533212

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 533211, python-flask-caching/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: python-flask-caching/repos/community-testing-any/PKGBUILD (from rev 533211, python-flask-caching/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-11-25 09:12:43 UTC (rev 533212)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-flask-caching
+pkgver=1.8.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=('417178a83e8aca9c6948ccc1354c19918b7c5e920fae4472cce4df931e9fa780ba032b5645364e114fb4ab08cc8045ed7f24dcd8dbd0d2bc1a814e95a9a96e81')
+
+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