db-move: moved webkit2gtk-4.1 from [testing] to [extra] (x86_64)
[arch-packages.git] / python-wstools / trunk / PKGBUILD
blobf3dc7115ad32700ef93fa4bebbb06e551e1ba181
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-wstools
4 pkgver=0.4.10
5 pkgrel=6
6 pkgdesc="WSDL parsing services package for Web Services for Python"
7 arch=('any')
8 url="https://github.com/pycontribs/wstools"
9 license=('custom')
10 depends=('python-six')
11 makedepends=('python-pbr' 'python-setuptools')
12 checkdepends=('python-pytest-runner' 'autopep8' 'python-pytest-cov')
13 source=("https://github.com/pycontribs/wstools/archive/$pkgver/$pkgname-$pkgver.tar.gz"
14         python310.patch)
15 sha512sums=('1acd8e62d71c7d330f1e953a0da1956291c5dfb25ff9b8b8799c83feaa4230e384955735b131bab7b430b92ae6c18498927d416d2d1e11fb5c5dad93417c671a'
16             'd1eb690578eaf7f5e79d9dbc0494b545d88e124e11f9927c5c17c9e64b7cba209fbe5ad68b43afd84c850d22c36133e39e305d214ea55e8a7935e06a465f8947')
18 export PBR_VERSION=$pkgver
20 prepare() {
21   cd wstools-$pkgver
22   patch -Np1 -i ../python310.patch
25 build() {
26   cd wstools-$pkgver
27   python setup.py build
30 check() {
31   cd wstools-$pkgver
32   python setup.py test
35 package() {
36   cd wstools-$pkgver
37   python setup.py install --root="$pkgdir" --optimize=1
39   install -d "$pkgdir/usr/share/licenses/$pkgname"
40   install -Dm644 docs/* "$pkgdir/usr/share/licenses/$pkgname"/