Date: Sunday, April 9, 2023 @ 04:10:08
Author: felixonmars
Revision: 1443109
archrelease: copy trunk to community-staging-any
Added:
python-flask-cors/repos/community-staging-any/
python-flask-cors/repos/community-staging-any/PKGBUILD
(from rev 1443108, python-flask-cors/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-flask-cors/repos/community-staging-any/PKGBUILD (from rev
1443108, python-flask-cors/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-09 04:10:08 UTC (rev 1443109)
@@ -0,0 +1,36 @@
+# Maintainer: Chih-Hsuan Yen <[email protected]>
+# Maintainer: Johannes Löthberg <[email protected]>
+
+pkgname=python-flask-cors
+pkgver=3.0.10
+pkgrel=5
+
+pkgdesc='A Flask extension adding a decorator for CORS support'
+url='https://pypi.org/project/Flask-Cors'
+arch=('any')
+license=('MIT')
+
+depends=('python-flask' 'python-six')
+makedepends=('python-setuptools')
+
+source=("https://pypi.org/packages/source/F/Flask-Cors/Flask-Cors-$pkgver.tar.gz")
+
+sha256sums=('b60839393f3b84a0f3746f6cdca56c1ad7426aa738b70d6c61375857823181de')
+
+build() {
+ cd Flask-Cors-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd Flask-Cors-$pkgver
+ # Upstream uses nosetests, which appears to test all Pyton files,
+ # while unittest discovers test*.py only by default.
+ python -m unittest discover -p '*test*.py'
+}
+
+package() {
+ cd Flask-Cors-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}