[arch-commits] Commit in python-aiohttp-apispec/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 17:53:59 UTC 2020


    Date: Thursday, November 12, 2020 @ 17:53:58
  Author: foutrelis
Revision: 752874

archrelease: copy trunk to community-staging-any

Added:
  python-aiohttp-apispec/repos/community-staging-any/
  python-aiohttp-apispec/repos/community-staging-any/PKGBUILD
    (from rev 752873, python-aiohttp-apispec/trunk/PKGBUILD)

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

Copied: python-aiohttp-apispec/repos/community-staging-any/PKGBUILD (from rev 752873, python-aiohttp-apispec/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 17:53:58 UTC (rev 752874)
@@ -0,0 +1,37 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=aiohttp-apispec
+pkgname=python-$_pkgname
+pkgver=2.2.1
+pkgrel=2
+pkgdesc='Build and document REST APIs with aiohttp and apispec'
+arch=('any')
+url='https://github.com/maximdanilchenko/aiohttp-apispec'
+license=('MIT')
+depends=('python-aiohttp' 'python-apispec' 'python-webargs' 'python-jinja')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-pytest-aiohttp')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('c69ecf30c1e875b2961567fc599276ee559328a0e37954352b3fe45d60f486872b7a367fc2de6f186ced44ab732c0746c90dcb503db9200681fe6384b00f8ecd')
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python setup.py pytest
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list