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

Felix Yan felixonmars at archlinux.org
Fri Oct 2 05:53:21 UTC 2020


    Date: Friday, October 2, 2020 @ 05:53:21
  Author: felixonmars
Revision: 714929

archrelease: copy trunk to community-testing-any

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

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

Copied: python-apispec/repos/community-testing-any/PKGBUILD (from rev 714928, python-apispec/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-10-02 05:53:21 UTC (rev 714929)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-apispec
+pkgver=4.0.0
+pkgrel=1
+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