# Maintainer: Andy Botting pkgname=python-saharaclient pkgver='3.0.0' pkgrel='1' pkgdesc='Python client library for Sahara' arch=('any') url="http://docs.openstack.org/$pkgname/" license=('Apache') depends=('python-pbr' 'python-babel' 'python-keystoneauth1' 'python-osc-lib' 'python-oslo-log' 'python-oslo-serialization' 'python-oslo-i18n' 'python-oslo-utils' 'python-openstackclient' 'python-requests' 'python-six') checkdepends=('python-hacking' 'python-mock' 'python-oslotest' 'python-stestr' 'python-requests-mock') source=("https://github.com/openstack/$pkgname/archive/$pkgver.tar.gz") sha512sums=('3cf8f43ce0256aa944760749fecf78bd2f7ee56799e390c0b6c4b64d91f234e9211596fd9fc46dedcd75451d9ec1afa92e5619a184e104ab8747c07b32438cec') export PBR_VERSION=$pkgver build() { cd $pkgname-$pkgver python setup.py build } check() { cd $pkgname-$pkgver sed -i 's/pep8/pycodestyle/g' saharaclient/tests/hacking/checks.py stestr run } package() { cd $pkgname-$pkgver python setup.py install --root="$pkgdir" --optimize=1 } # vim:set ts=2 sw=2 et: