[arch-commits] Commit in python-flask-restful/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 18:15:21 UTC 2020
Date: Monday, November 9, 2020 @ 18:15:20
Author: foutrelis
Revision: 747899
archrelease: copy trunk to community-staging-any
Added:
python-flask-restful/repos/community-staging-any/
python-flask-restful/repos/community-staging-any/PKGBUILD
(from rev 747898, python-flask-restful/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: python-flask-restful/repos/community-staging-any/PKGBUILD (from rev 747898, python-flask-restful/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 18:15:20 UTC (rev 747899)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-flask-restful
+pkgver=0.3.8
+pkgrel=2
+pkgdesc="Simple framework for creating REST APIs"
+url="https://github.com/flask-restful/flask-restful"
+license=('BSD')
+arch=('any')
+depends=('python-six' 'python-flask' 'python-aniso8601' 'python-pytz')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-mock' 'python-blinker' 'python-pycryptodome')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/flask-restful/flask-restful/archive/$pkgver.tar.gz")
+sha512sums=('15172114fcedc2f4286cf5f583d95e42c8c8ce6553f9a44e57124f2b1417bf9f094dcb5154a6933ebebc8022f39d4d7969d29d38576111f9d5b45f630b36a66c')
+
+build() {
+ cd flask-restful-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd flask-restful-$pkgver
+ python setup.py nosetests || echo "Tests failed"
+}
+
+package() {
+ cd flask-restful-$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