[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Wed May 23 21:56:49 UTC 2018


    Date: Wednesday, May 23, 2018 @ 21:56:48
  Author: felixonmars
Revision: 328481

addpkg: python-flasgger 0.8.3-1

Added:
  python-flasgger/
  python-flasgger/repos/
  python-flasgger/trunk/
  python-flasgger/trunk/PKGBUILD

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

Added: python-flasgger/trunk/PKGBUILD
===================================================================
--- python-flasgger/trunk/PKGBUILD	                        (rev 0)
+++ python-flasgger/trunk/PKGBUILD	2018-05-23 21:56:48 UTC (rev 328481)
@@ -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
+}


Property changes on: python-flasgger/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list