# Maintainer: Andy Botting pkgname=python-aodhclient pkgver=3.5.1 pkgrel=1 pkgdesc='Client library for the Aodh API' arch=(any) url="https://docs.openstack.org/$pkgname/" license=(Apache) makedepends=(python-setuptools) depends=(python-pbr python-cliff python-osc-lib python-oslo-i18n python-oslo-serialization python-oslo-utils python-osprofiler python-keystoneauth1 python-six python-pyparsing) checkdepends=(python-oslotest python-stestr python-testtools) source=("$pkgname-$pkgver.tar.gz::https://opendev.org/openstack/$pkgname/archive/$pkgver.tar.gz") sha512sums=('623823592db328972658dfc921699729536597efe0a6b8cf7fd7e4515226ce25540a0e635c35a19872d450ee891b52833950453159c23d44de0484a09db3a2d3') export PBR_VERSION=$pkgver build() { cd $pkgname # Remove functional tests as they're complicated to run rm -fr aodhclient/tests/functional python setup.py build } check() { cd $pkgname stestr run } package() { cd $pkgname python setup.py install --root="$pkgdir" --optimize=1 }