summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d1671b0540110485e4107b0ac912f4f3ca5ba54a (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
# Maintainer: Andy Botting <andy@andybotting.com>

pkgname=python-yaql
pkgver=2.0.0
pkgrel=3
pkgdesc='YAQL - Yet Another Query Language'
arch=('any')
url='https://yaql.readthedocs.io'
license=('Apache')
depends=('python-six' 'python-pbr' 'python-babel' 'python-dateutil'
         'python-ply')
checkdepends=('python-fixtures' 'python-testtools' 'python-stestr')
source=("https://opendev.org/openstack/yaql/archive/$pkgver.tar.gz")
sha512sums=('75371b535067aac766302b74a8633230a48d2a0791e3d360e97f7d09175cccddb14d6306bd183f01a6ed6d8fb7fc5815a5f256fdbb1a73277d45bc110bd6e1c4')

export PBR_VERSION=$pkgver

build() {
  cd yaql
  python setup.py build
}

check() {
  cd yaql
  # Fix test function name for Python 3
  sed -i 's/assertItemsEqual/assertCountEqual/g' yaql/tests/*.py
  stestr run --test-path ./yaql/tests
}

package() {
  cd yaql
  python setup.py install --root="$pkgdir" --optimize=1
}

# vim:set ts=2 sw=2 et: