[arch-commits] Commit in python-webargs/repos (community-any community-any/PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Sat Feb 15 20:51:12 UTC 2020


    Date: Saturday, February 15, 2020 @ 20:51:12
  Author: ffy00
Revision: 571835

archrelease: copy trunk to community-any

Added:
  python-webargs/repos/community-any/
  python-webargs/repos/community-any/PKGBUILD
    (from rev 571834, python-webargs/trunk/PKGBUILD)

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

Copied: python-webargs/repos/community-any/PKGBUILD (from rev 571834, python-webargs/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-02-15 20:51:12 UTC (rev 571835)
@@ -0,0 +1,44 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=webargs
+pkgname=python-$_pkgname
+pkgver=5.5.3
+pkgrel=1
+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')
+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=('ce76f4a25538b7cdcd98a8e0548d71d7b405c0561b8ed8b0ee17114f41127ee6b4304d5636da212bfd2fe1a13d12e9ee81515473f7fae7f3973ff2a012e3810b')
+
+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
+}
+
+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