[arch-commits] Commit in python-openapi-spec-validator/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 04:18:47 UTC 2019
Date: Saturday, October 26, 2019 @ 04:18:47
Author: felixonmars
Revision: 519975
archrelease: copy trunk to community-staging-any
Added:
python-openapi-spec-validator/repos/community-staging-any/
python-openapi-spec-validator/repos/community-staging-any/PKGBUILD
(from rev 519974, python-openapi-spec-validator/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: python-openapi-spec-validator/repos/community-staging-any/PKGBUILD (from rev 519974, python-openapi-spec-validator/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 04:18:47 UTC (rev 519975)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-openapi-spec-validator
+pkgver=0.2.8
+pkgrel=2
+pkgdesc="A Python library that validates OpenAPI Specs against the OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0.0 specification"
+url="https://github.com/p1c2u/openapi-spec-validator"
+license=('Apache')
+arch=('any')
+depends=('python-six' 'python-yaml' 'python-jsonschema')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-mock' 'python-pytest-flake8' 'python-pytest-cov'
+ 'python-tox')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/p1c2u/openapi-spec-validator/archive/$pkgver.tar.gz")
+sha512sums=('38b6817d00e37cf3d1e23d9a4013a0ceab680b1c6e76f431ad4b3741c405789a03f04d6d5025b4fb8c4362ec8eec9a9d3d0c2e2f1bcfb4e6e2b0d581713025a7')
+
+build() {
+ cd openapi-spec-validator-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd openapi-spec-validator-$pkgver
+ python setup.py pytest
+}
+
+package() {
+ cd openapi-spec-validator-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list