archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-hacking / trunk / PKGBUILD
blob320688412cb12d64df2f9eebaf0442a6c86c9526
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-hacking
4 pkgver=5.0.0
5 pkgrel=2
6 arch=('any')
7 pkgdesc='OpenStack Hacking Guideline Enforcement'
8 url='https://docs.openstack.org/developer/hacking'
9 license=('Apache')
10 depends=('flake8')
11 makedepends=('python-pbr' 'python-setuptools')
12 checkdepends=('python-ddt' 'python-oslotest')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/openstack/hacking/archive/$pkgver.tar.gz")
14 sha512sums=('d698a2643d26e867b0eda47f4bd1c80be878a0ba2ef74595a38237ff3c49112bca541956b751291b6f691234eacf26c58dea151aaf40ab10cc70446a93f85fc6')
16 export PBR_VERSION=$pkgver
18 prepare() {
19   cd hacking-$pkgver
20   sed -i 's/~=/>=/' requirements.txt
23 build() {
24   cd hacking-$pkgver
25   python setup.py build
28 check() {
29   cd hacking-$pkgver
30   # Our flake8 is too new
31   stestr run || echo "Tests failed"
34 package_python-hacking() {
35   cd hacking-$pkgver
36   python setup.py install --root "$pkgdir" --optimize=1