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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 16:20:45 UTC 2020


    Date: Monday, November 9, 2020 @ 16:20:45
  Author: foutrelis
Revision: 747485

archrelease: copy trunk to community-staging-any

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

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

Copied: python-apispec/repos/community-staging-any/PKGBUILD (from rev 747483, python-apispec/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 16:20:45 UTC (rev 747485)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-apispec
+pkgver=4.0.0
+pkgrel=2
+pkgdesc="A pluggable API specification generator. Currently supports the OpenAPI Specification."
+url="https://github.com/marshmallow-code/apispec"
+license=('MIT')
+arch=('any')
+depends=('python')
+optdepends=('python-yaml: for yaml support'
+            'python-prance: for validation'
+            'python-openapi-spec-validator: for validation')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-tornado' 'python-bottle' 'python-marshmallow'
+              'python-flask' 'python-prance' 'python-yaml' 'python-mock'
+              'python-openapi-spec-validator')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/marshmallow-code/apispec/archive/$pkgver.tar.gz")
+sha512sums=('6eb719497fa35c408d711a91ee922d682eb138843cdebb7858a031b786e4b88e34ad643be4647bae17006f57e13c7e5b8828a2ed1626d2304f06ebe1ef2fc658')
+
+build() {
+  cd apispec-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd apispec-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd apispec-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list