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

Felix Yan felixonmars at archlinux.org
Thu Sep 19 06:21:48 UTC 2019


    Date: Thursday, September 19, 2019 @ 06:21:48
  Author: felixonmars
Revision: 511141

archrelease: copy trunk to community-testing-any

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

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

Copied: python-apispec/repos/community-testing-any/PKGBUILD (from rev 511140, python-apispec/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-09-19 06:21:48 UTC (rev 511141)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-apispec
+pkgver=3.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=('7bcdcc2f1d8d0692228a5f1731ef6e23608a7e96a4a30fe294977ec3f304294f04c1649d9e8a93bbba2ad1c2a85c42c8cf2db4773478525eb1127c8c87be4af8')
+
+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