[arch-commits] Commit in python-flask-restful/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed May 23 21:42:18 UTC 2018
Date: Wednesday, May 23, 2018 @ 21:42:17
Author: felixonmars
Revision: 328478
archrelease: copy trunk to community-any
Added:
python-flask-restful/repos/community-any/
python-flask-restful/repos/community-any/PKGBUILD
(from rev 328477, python-flask-restful/trunk/PKGBUILD)
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Copied: python-flask-restful/repos/community-any/PKGBUILD (from rev 328477, python-flask-restful/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2018-05-23 21:42:17 UTC (rev 328478)
@@ -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=1
+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