[arch-commits] Commit in python-webargs/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Nov 10 04:00:34 UTC 2020
Date: Tuesday, November 10, 2020 @ 04:00:33
Author: foutrelis
Revision: 748349
archrelease: copy trunk to community-staging-any
Added:
python-webargs/repos/community-staging-any/
python-webargs/repos/community-staging-any/PKGBUILD
(from rev 748347, python-webargs/trunk/PKGBUILD)
----------+
PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
Copied: python-webargs/repos/community-staging-any/PKGBUILD (from rev 748347, python-webargs/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-10 04:00:33 UTC (rev 748349)
@@ -0,0 +1,56 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=webargs
+pkgname=python-$_pkgname
+pkgver=6.1.0
+pkgrel=2
+pkgdesc='A friendly library for parsing HTTP request arguments, with built-in support for popular web frameworks'
+arch=('any')
+url='https://github.com/marshmallow-code/webargs'
+license=('MIT')
+depends=('python-marshmallow')
+makedepends=('python-setuptools' 'python-sphinx' 'python-sphinx-issues' 'python-sphinx-typlog-theme')
+checkdepends=('python-pytest-runner' 'python-mock' 'python-webtest' 'python-pytest-aiohttp'
+ 'python-bottle' 'python-werkzeug' 'python-django' 'python-flask' 'python-tornado')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('844f4bc0c506c47da756af5d7e0e976227b4b30d1cb01ad5825ca73fe8638851a73beea308ac61ec21afc64d8cbc7ea73a32198e3f73a9564c614e22344a3386')
+
+prepare() {
+ cd $_pkgname-$pkgver
+
+ rm tests/test_{falcon,pyramid,webapp2}parser.py tests/test_py3/test_aiohttpparser{,_async_functions}.py
+}
+
+build() {
+ cd $_pkgname-$pkgver
+
+ python setup.py build
+
+ cd docs
+
+ make html man
+ ls _build/man
+ gzip _build/man/webargs.1
+}
+
+check() {
+ cd $_pkgname-$pkgver
+
+ python setup.py pytest
+}
+
+package() {
+ cd $_pkgname-$pkgver
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
+ cp -r -a --no-preserve=ownership docs/_build/html "$pkgdir"/usr/share/doc/$pkgname
+
+ install -dm 755 "$pkgdir"/usr/share/man/man1
+ install -Dm 644 docs/_build/man/webargs.1.gz "$pkgdir"/usr/share/man/man1/webargs.1.gz
+
+ 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