1 # Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>
2 # Maintainer: Johannes Löthberg <johannes@kyriasis.com>
4 pkgname=python-flask-cors
8 pkgdesc='A Flask extension adding a decorator for CORS support'
9 url='https://pypi.org/project/Flask-Cors'
13 depends=('python-flask' 'python-six')
14 makedepends=('python-setuptools')
16 source=("https://pypi.org/packages/source/F/Flask-Cors/Flask-Cors-$pkgver.tar.gz")
18 sha256sums=('b60839393f3b84a0f3746f6cdca56c1ad7426aa738b70d6c61375857823181de')
27 # Upstream uses nosetests, which appears to test all Pyton files,
28 # while unittest discovers test*.py only by default.
29 python -m unittest discover -p '*test*.py'
34 python setup.py install --root="$pkgdir" --optimize=1 --skip-build
35 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE