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

Evangelos Foutras foutrelis at archlinux.org
Mon Jul 9 01:19:20 UTC 2018


    Date: Monday, July 9, 2018 @ 01:19:20
  Author: foutrelis
Revision: 355526

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

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

Copied: python-flask-restful/repos/community-staging-any/PKGBUILD (from rev 355525, python-flask-restful/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-09 01:19:20 UTC (rev 355526)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-flask-restful
+pkgname=(python-flask-restful python2-flask-restful)
+pkgver=0.3.6
+pkgrel=2
+pkgdesc="Simple framework for creating REST APIs"
+url="https://github.com/flask-restful/flask-restful"
+license=('BSD')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six' 'python-flask'
+             'python2-flask' 'python-aniso8601' 'python2-aniso8601' 'python-pytz' 'python2-pytz')
+checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-blinker'
+              'python2-blinker' 'python-crypto' 'python2-crypto')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/flask-restful/flask-restful/archive/$pkgver.tar.gz")
+sha512sums=('c5136302111e6c8953e038d31b42b029744111bb916dea7ec8bd5fac2de5e17a86d30a7d04a7335cdc5da25ee13f35ad9a6d284166e11cca0c6fec96d23fd977')
+
+prepare() {
+  cp -a flask-restful-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/flask-restful-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/flask-restful-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/flask-restful-$pkgver
+  python setup.py nosetests || warning "Tests failed"
+
+  cd "$srcdir"/flask-restful-$pkgver-py2
+  python2 setup.py nosetests || warning "Tests failed"
+}
+
+package_python-flask-restful() {
+  depends=('python-six' 'python-flask' 'python-aniso8601' 'python-pytz')
+
+  cd flask-restful-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-flask-restful() {
+  depends=('python2-six' 'python2-flask' 'python2-aniso8601' 'python2-pytz')
+
+  cd flask-restful-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list