blob: a8f6bd6e61d5e961a5c314456016b75d9d1458ac (
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
|
# Maintainer: Andy Botting <andy@andybotting.com>
pkgname=python-muranoclient
pkgver=2.3.0
pkgrel=1
pkgdesc='Python client library for Murano'
arch=('any')
url="https://docs.openstack.org/$pkgname/"
license=('Apache')
depends=('python-pbr' 'python-prettytable' 'python-glanceclient'
'python-keystoneclient' 'python-iso8601' 'python-six' 'python-babel'
'python-pyopenssl' 'python-requests' 'python-yaml' 'python-yaql'
'python-osc-lib' 'python-muranopkgcheck' 'python-oslo-serialization'
'python-oslo-utils' 'python-oslo-log' 'python-oslo-i18n')
checkdepends=('python-fixtures' 'python-mock' 'python-requests-mock'
'python-tempest' 'python-stestr' 'python-testscenarios'
'python-testtools' 'python-oslotest' 'python-os-testr')
source=("https://github.com/openstack/$pkgname/archive/$pkgver.tar.gz")
sha512sums=('9ccd869a273287c97c3a2a69b8eb0b004b586316e0a7e62507efb3961b77b2b4237f3e09da3e4a833869be49c61c5f77920ea9d090b8474da817a8cb86d5cbc5')
export PBR_VERSION=$pkgver
build() {
cd $pkgname-$pkgver
python setup.py build
}
check() {
cd $pkgname-$pkgver
# Fix test function name for Python 3
sed -i 's/assertItemsEqual/assertCountEqual/g' muranoclient/tests/unit/osc/v1/*.py
stestr run
}
package() {
cd $pkgname-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
}
# vim:set ts=2 sw=2 et:
|