archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-oslo-utils / repos / community-any / PKGBUILD
blob7f20cfe8559dda602a11b93d2f1470780e930782
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
4 pkgname=python-oslo-utils
5 pkgver=6.1.0
6 pkgrel=3
7 pkgdesc="Oslo Utility library"
8 arch=('any')
9 url="https://pypi.python.org/pypi/oslo.utils/$pkgver"
10 license=('Apache')
11 depends=('python-iso8601' 'python-oslo-i18n' 'python-pytz' 'python-netaddr'
12          'python-netifaces' 'python-debtcollector' 'python-pyparsing' 'python-packaging')
13 makedepends=('python-setuptools')
14 checkdepends=('python-oslotest' 'python-ddt' 'python-eventlet')
15 source=("https://github.com/openstack/oslo.utils/archive/$pkgver/$pkgname-$pkgver.tar.gz")
16 sha512sums=('ce6b436bb1e633d585d34c8dbda7815250f369d2d0c89fb87f1613ff5197d7d24d01b7605e2e514288209e0ebaad5d661d9668259793fb0e1d8180bef6cdadf7')
18 export PBR_VERSION=$pkgver
20 build() {
21   cd oslo.utils-$pkgver
22   python setup.py build
25 check() {
26   cd oslo.utils-$pkgver
27   stestr run
30 package() {
31   cd oslo.utils-$pkgver
32   python setup.py install --root="$pkgdir/" --optimize=1
35 # vim:set ts=2 sw=2 et: