[arch-commits] Commit in python-flasgger/repos (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Wed Dec 1 11:17:43 UTC 2021
Date: Wednesday, December 1, 2021 @ 11:17:43
Author: foutrelis
Revision: 1059152
archrelease: copy trunk to community-staging-any
Added:
python-flasgger/repos/community-staging-any/
python-flasgger/repos/community-staging-any/PKGBUILD
(from rev 1059151, python-flasgger/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: python-flasgger/repos/community-staging-any/PKGBUILD (from rev 1059151, python-flasgger/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-01 11:17:43 UTC (rev 1059152)
@@ -0,0 +1,38 @@
+# 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=5
+pkgdesc="Extract swagger specs from your flask project"
+url="https://github.com/flasgger/flasgger"
+license=('MIT')
+arch=('any')
+depends=('python-flask' 'python-yaml' 'python-jsonschema' 'python-mistune1' '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')
+
+prepare() {
+ cd flasgger-$pkgver
+ # apispec 4
+ sed -i 's/schema2parameters(v)/schema2parameters(v, location="body")/' flasgger/marshmallow_apispec.py
+}
+
+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