[arch-commits] Commit in python-flasgger/repos (community-any community-any/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed May 23 21:57:44 UTC 2018
Date: Wednesday, May 23, 2018 @ 21:57:43
Author: felixonmars
Revision: 328482
archrelease: copy trunk to community-any
Added:
python-flasgger/repos/community-any/
python-flasgger/repos/community-any/PKGBUILD
(from rev 328481, python-flasgger/trunk/PKGBUILD)
----------+
PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
Copied: python-flasgger/repos/community-any/PKGBUILD (from rev 328481, python-flasgger/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2018-05-23 21:57:43 UTC (rev 328482)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-flasgger
+pkgname=(python-flasgger python2-flasgger)
+pkgver=0.8.3
+pkgrel=1
+pkgdesc="Extract swagger specs from your flask project"
+url="https://github.com/rochacbruno/flasgger"
+license=('PerlArtistic')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-flask' 'python2-flask' 'python-yaml'
+ 'python2-yaml' 'python-jsonschema' 'python2-jsonschema' 'python-mistune'
+ 'python2-mistune' 'python-six' 'python2-six')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-flex' 'python2-flex'
+ 'python-marshmallow' 'python2-marshmallow' 'python-apispec' 'python2-apispec'
+ 'python-flask-restful' 'python2-flask-restful' 'python-flask-jwt' 'python2-flask-jwt'
+ 'python-decorator' 'python2-decorator')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/rochacbruno/flasgger/archive/$pkgver.tar.gz")
+sha512sums=('0b5b9dc1e470ba6a84737eb6a5f15d5528a3c979efbb170a009403ac95e6e9aee833ccbe99142f20e284e795304cdac8bad6e9aebcd0e199b127dc1a3df41504')
+
+prepare() {
+ cp -a flasgger-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/flasgger-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/flasgger-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/flasgger-$pkgver
+ PYTHONPATH="$PWD/etc/flasgger_package" python setup.py pytest
+
+ cd "$srcdir"/flasgger-$pkgver-py2
+ PYTHONPATH="$PWD/etc/flasgger_package" python2 setup.py pytest
+}
+
+package_python-flasgger() {
+ depends=('python-flask' 'python-yaml' 'python-jsonschema' 'python-mistune' 'python-six')
+
+ cd flasgger-$pkgver
+ python3 setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-flasgger() {
+ depends=('python2-flask' 'python2-yaml' 'python2-jsonschema' 'python2-mistune' 'python2-six')
+
+ cd flasgger-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list