blob: 4212382b7111c706fddb8b0729a845f89143b7cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Ivan Batrakov <blackfan321 at disroot dot org>
# Contributor: Filipe LaĆns (FFY00) <lains@archlinux.org>
_pkgname=webargs
pkgname=python-$_pkgname
pkgver=8.4.0
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' 'python-sphinx-typlog-theme' 'python-sphinx-furo')
checkdepends=('python-pytest-runner' 'python-webtest' 'python-pytest-aiohttp' 'python-webtest-aiohttp'
'python-bottle' 'python-werkzeug' 'python-django' 'python-flask' 'python-tornado' 'python-pytest-asyncio')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha512sums=('a57df4d063c59b75fb28315aca1ba87d581113787729c222397a3e8f7f376e0677956bc921312b5962f2b2fa69529f82f59c6887aabfdcfe58ad8489592925cd')
prepare() {
cd $_pkgname-$pkgver
rm tests/test_{falcon,pyramid}parser.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:
|