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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 18:29:04 UTC 2020


    Date: Monday, November 9, 2020 @ 18:29:03
  Author: foutrelis
Revision: 748011

archrelease: copy trunk to community-staging-any

Added:
  python-flasgger/repos/community-staging-any/
  python-flasgger/repos/community-staging-any/PKGBUILD
    (from rev 748010, python-flasgger/trunk/PKGBUILD)

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

Copied: python-flasgger/repos/community-staging-any/PKGBUILD (from rev 748010, python-flasgger/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 18:29:03 UTC (rev 748011)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgname=python-flasgger
+pkgver=0.9.5
+pkgrel=2
+pkgdesc="Extract swagger specs from your flask project"
+url="https://github.com/flasgger/flasgger"
+license=('PerlArtistic')
+arch=('any')
+depends=('python-flask' 'python-yaml' 'python-jsonschema' 'python-mistune' 'python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-flex' 'python-marshmallow' 'python-decorator'
+              'python-apispec-webframeworks' 'python-flask-restful' 'python-flask-jwt')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/flasgger/flasgger/archive/$pkgver.tar.gz")
+sha512sums=('d785c272a3d2fc4753ceb061587fff1db2ec726fe7cea7b0ec723a56f2f1f6296545f52249a08a1ae042e2c002c88eb2d9442928c53b00345bdde82442149fae')
+
+build() {
+  cd flasgger-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd flasgger-$pkgver
+  PYTHONPATH="$PWD/etc/flasgger_package" python -m pytest tests
+}
+
+package() {
+  cd flasgger-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}


More information about the arch-commits mailing list