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

Evangelos Foutras foutrelis at archlinux.org
Sat Oct 26 14:50:12 UTC 2019


    Date: Saturday, October 26, 2019 @ 14:50:11
  Author: foutrelis
Revision: 520371

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 520370, python-flask-restful/trunk/PKGBUILD)

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

Copied: python-flask-restful/repos/community-staging-any/PKGBUILD (from rev 520370, python-flask-restful/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 14:50:11 UTC (rev 520371)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-flask-restful
+pkgver=0.3.7
+pkgrel=3
+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=('1d1d066dec5f39af3197b680f791d83df686602b703efe874ea0e81d7f3b65f605dbdb63f84fdd07e469c6824d52571e195ae70f58e1543b53f13a81e1cd8543')
+
+build() {
+  cd flask-restful-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd flask-restful-$pkgver
+  python setup.py nosetests || warning "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