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

Antonio Rojas arojas at gemini.archlinux.org
Tue Mar 29 07:15:27 UTC 2022


    Date: Tuesday, March 29, 2022 @ 07:15:26
  Author: arojas
Revision: 1177518

archrelease: copy trunk to community-any

Added:
  python-openapi-core/repos/community-any/
  python-openapi-core/repos/community-any/PKGBUILD
    (from rev 1177517, python-openapi-core/trunk/PKGBUILD)

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

Copied: python-openapi-core/repos/community-any/PKGBUILD (from rev 1177517, python-openapi-core/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-03-29 07:15:26 UTC (rev 1177518)
@@ -0,0 +1,31 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=python-openapi-core
+_pipname=openapi-core
+pkgver=0.14.2
+pkgrel=1
+pkgdesc='Client-side and server-side support for the OpenAPI Specification v3'
+arch=(any)
+url='https://github.com/p1c2u/openapi-core'
+license=(BSD)
+depends=(python-openapi-spec-validator python-dictpath python-werkzeug)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest-cov python-pytest-flake8 python-requests)
+source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz)
+sha256sums=('62ad93c8114ce6025f25b004ff0f3674eea8bc4ae920c726e98921fdbe41b4f3')
+
+build() {
+  cd $_pipname-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_pipname-$pkgver
+  pytest -vv
+}
+
+package() {
+  cd $_pipname-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}



More information about the arch-commits mailing list