[arch-commits] Commit in python-flasgger/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Feb 13 09:24:48 UTC 2020


    Date: Thursday, February 13, 2020 @ 09:24:47
  Author: felixonmars
Revision: 569938

upgpkg: python-flasgger 0.9.4-2

- fix upstream location
- remove outdated hacks
- remove python2 sibling

Modified:
  python-flasgger/trunk/PKGBUILD

----------+
 PKGBUILD |   42 +++++++++++-------------------------------
 1 file changed, 11 insertions(+), 31 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-13 09:15:43 UTC (rev 569937)
+++ PKGBUILD	2020-02-13 09:24:47 UTC (rev 569938)
@@ -2,51 +2,31 @@
 # 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)
+pkgname=python-flasgger
 pkgver=0.9.4
-pkgrel=1
+pkgrel=2
 pkgdesc="Extract swagger specs from your flask project"
-url="https://github.com/nicobatty/flasgger"
+url="https://github.com/flasgger/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' 'python-flex' 'python-marshmallow' 'python-decorator'
+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=("$pkgbase-$pkgver.tar.gz::https://github.com/nicobatty/flasgger/archive/$pkgver.tar.gz")
-sha512sums=('a390b29230e49b47e2c5119087f83b05708d02fc1af1c699b45a43791ae5eabd9ad92f86f7a7e4505f2c3d0fd5de4b2eced040508536141e11e90f33b35da985')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/flasgger/flasgger/archive/$pkgver.tar.gz")
+sha512sums=('7cfd2ebbd2b16a1ae6a9cf24694a1a396786259d28a742e89e9090d3db0d7be0b0a6f567e717c6cf7723275a4129ce37d7dbd90dbc42c9da261dd6cd167eb6f2')
 
-prepare() {
-  sed -i '/jsonschema<3.0.0/d' flasgger-$pkgver/setup.py
-  sed -i 's/schema_name_resolver=None,/schema_name_resolver=lambda x: None,/' flasgger-$pkgver/flasgger/marshmallow_apispec.py
-  cp -a flasgger-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/flasgger-$pkgver
+  cd flasgger-$pkgver
   python setup.py build
-
-  cd "$srcdir"/flasgger-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   cd flasgger-$pkgver
-  PYTHONPATH="$PWD/etc/flasgger_package" python setup.py pytest
+  PYTHONPATH="$PWD/etc/flasgger_package" python -m pytest
 }
 
-package_python-flasgger() {
-  depends=('python-flask' 'python-yaml' 'python-jsonschema' 'python-mistune' 'python-six')
-
+package() {
   cd flasgger-$pkgver
   python 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
-}



More information about the arch-commits mailing list