# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com

pkgname=python-stevedore
pkgver=5.2.0
pkgrel=2
pkgdesc="Manage dynamic plugins for Python applications"
arch=(any)
url="https://github.com/openstack/stevedore"
license=('Apache')
depends=('python')
makedepends=('python-pbr' 'python-setuptools')
options=('!emptydirs')
source=(https://pypi.org/packages/source/s/stevedore/stevedore-$pkgver.tar.gz)
sha256sums=('46b93ca40e1114cea93d738a6c1e365396981bb6bb78c27045b7587c9473544d')

prepare() {
  cd stevedore-$pkgver
  # Remove dependency on pbr; it's not a runtime dependency
  sed -i '/pbr/d' requirements.txt
}

package() {
  cd stevedore-$pkgver
  python3 setup.py install --root="$pkgdir" -O1
}

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