Date: Saturday, November 14, 2020 @ 00:51:56 Author: felixonmars Revision: 754037
add fix for apispec 4 Modified: python-flasgger/trunk/PKGBUILD ----------+ PKGBUILD | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-11-13 23:33:54 UTC (rev 754036) +++ PKGBUILD 2020-11-14 00:51:56 UTC (rev 754037) @@ -7,7 +7,7 @@ pkgrel=2 pkgdesc="Extract swagger specs from your flask project" url="https://github.com/flasgger/flasgger" -license=('PerlArtistic') +license=('MIT') arch=('any') depends=('python-flask' 'python-yaml' 'python-jsonschema' 'python-mistune' 'python-six') makedepends=('python-setuptools') @@ -16,6 +16,12 @@ 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
