[arch-commits] Commit in python-aiohttp-apispec/trunk (PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Sat Feb 15 21:30:21 UTC 2020
Date: Saturday, February 15, 2020 @ 21:30:21
Author: ffy00
Revision: 571861
upgpkg: python-aiohttp-apispec 1.5.0-1
Added:
python-aiohttp-apispec/trunk/PKGBUILD
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Added: PKGBUILD
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-02-15 21:30:21 UTC (rev 571861)
@@ -0,0 +1,37 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=aiohttp-apispec
+pkgname=python-$_pkgname
+pkgver=1.5.0
+pkgrel=1
+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=('e6c271abd0664da55fa4300b5de90c6585af17de2701b366d06c6a611401353445e8abb94e19dea640571fa071d688745aeadaa82fbccf6659e92409ade7276f')
+
+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