[arch-commits] Commit in python-openapi-spec-validator/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Nov 10 05:13:42 UTC 2020
Date: Tuesday, November 10, 2020 @ 05:13:42
Author: felixonmars
Revision: 749368
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 749366, 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 749366, python-openapi-spec-validator/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-10 05:13:42 UTC (rev 749368)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-openapi-spec-validator
+pkgver=0.2.9
+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=('29c6e6d343895069317ea69ade3e370416c8172db432187e6b64957468a9a1c69de510990f791ffeadb00591cc4bd2ebaed7ef0120fb9f6c3ed3fe25f6c28261')
+
+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