[arch-commits] Commit in python-openapi-schema-validator/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Mar 22 22:10:39 UTC 2021


    Date: Monday, March 22, 2021 @ 22:10:39
  Author: felixonmars
Revision: 899226

archrelease: copy trunk to community-any

Added:
  python-openapi-schema-validator/repos/community-any/
  python-openapi-schema-validator/repos/community-any/PKGBUILD
    (from rev 899225, python-openapi-schema-validator/trunk/PKGBUILD)

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

Copied: python-openapi-schema-validator/repos/community-any/PKGBUILD (from rev 899225, python-openapi-schema-validator/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-03-22 22:10:39 UTC (rev 899226)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-openapi-schema-validator
+pkgver=0.1.4
+pkgrel=1
+pkgdesc="OpenAPI schema validation for Python"
+url="https://github.com/p1c2u/openapi-schema-validator"
+license=('BSD')
+arch=('any')
+depends=('python-isodate' 'python-jsonschema' 'python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-cov' 'python-pytest-flake8' 'python-rfc3339-validator'
+              'python-strict-rfc3339')
+source=("https://github.com/p1c2u/openapi-schema-validator/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('24e0a2db946437b70648c39edb02bb92429d617e681cbca01b028a556c9379206be6e57537dac2f85fcfc243cd94a2ffb3d8b648179515ccc7f9cdd990689317')
+
+prepare() {
+  cd openapi-schema-validator-$pkgver
+  sed -i 's/import mock/from unittest import mock/' tests/integration/test_validators.py
+}
+
+build() {
+  cd openapi-schema-validator-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd openapi-schema-validator-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd openapi-schema-validator-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list