[arch-commits] Commit in python-apispec/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 15:52:03 UTC 2019
Date: Friday, October 25, 2019 @ 15:52:02
Author: felixonmars
Revision: 519232
archrelease: copy trunk to community-staging-any
Added:
python-apispec/repos/community-staging-any/
python-apispec/repos/community-staging-any/PKGBUILD
(from rev 519231, python-apispec/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-apispec/repos/community-staging-any/PKGBUILD (from rev 519231, python-apispec/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 15:52:02 UTC (rev 519232)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-apispec
+pkgver=3.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=('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