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

Felix Yan felixonmars at archlinux.org
Sat Nov 14 00:57:59 UTC 2020


    Date: Saturday, November 14, 2020 @ 00:57:58
  Author: felixonmars
Revision: 754039

archrelease: copy trunk to community-staging-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-14 00:57:36 UTC (rev 754038)
+++ PKGBUILD	2020-11-14 00:57:58 UTC (rev 754039)
@@ -1,32 +0,0 @@
-# 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
-}

Copied: python-flasgger/repos/community-staging-any/PKGBUILD (from rev 754038, python-flasgger/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-14 00:57:58 UTC (rev 754039)
@@ -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=3
+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-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')
+
+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