upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / python-flask-caching / repos / community-any / PKGBUILD
bloba090d8888a396f2a7cbae47f4e9e8184597da0f9
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-flask-caching
4 pkgver=2.0.2
5 pkgrel=3
6 pkgdesc="Adds caching support to your Flask application"
7 url="https://github.com/sh4nks/flask-caching"
8 license=('BSD')
9 arch=('any')
10 depends=('python-flask' 'python-cachelib')
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest-runner' 'python-pytest-cov' 'python-pytest-xprocess'
13               'python-pylibmc' 'python-redis' 'memcached' 'python-asgiref')
14 source=("$pkgname-$pkgver.tar.gz::https://github.com/sh4nks/flask-caching/archive/v$pkgver.tar.gz")
15 sha512sums=('b019c3e74ebb65bb34eb08cdc886a70694ea218116c84ff3e57e3167da23bef1d50baa94c747557784e440eee5166084a4cdaa9082afe3b914ed012ff143a4c4')
17 prepare() {
18   cd flask-caching-$pkgver
19   sed -i 's/, < 0.10.0//' setup.py
22 build() {
23   cd flask-caching-$pkgver
24   python setup.py build
27 check() {
28   cd flask-caching-$pkgver
29   python setup.py pytest
32 package() {
33   cd flask-caching-$pkgver
34   python setup.py install --root="$pkgdir" --optimize=1
35   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE