summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3d671ea8ed88aae8c3276f451620a298a156d865 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Maintainer: BigfootACA <bigfoot@classfun.cn>

_pyname=keystonemiddleware
pkgname=python-$_pyname
pkgver=10.1.0
pkgrel=1
pkgdesc="Middleware for OpenStack Identity"
arch=(any)
url="https://docs.openstack.org/keystonemiddleware/latest/"
license=(Apache)
depends=(
	python
	python-keystoneauth1
	python-oslo-cache
	python-oslo-config
	python-oslo-context
	python-oslo-i18n
	python-oslo-log
	python-oslo-serialization
	python-oslo-utils
	python-pbr
	python-pycadf
	python-keystoneclient
	python-requests
	python-six
	python-webob
	python-memcached
)
makedepends=(python-setuptools)
checkdepends=(
	python-hacking
	python-flake8-docstrings
	python-coverage
	python-cryptography
	python-fixtures
	python-oslotest
	python-requests-mock
	python-stevedore
	python-stestr
	python-testresources
	python-testtools
	python-webtest
	python-oslo-messaging
	bandit
)
options=('!emptydirs')
source=(https://pypi.io/packages/source/${_pyname::1}/$_pyname/$_pyname-$pkgver.tar.gz)
md5sums=('51a8e6cea30bea9465a2b46601f3ff6a')
sha256sums=('e0926e669eb995655c2b5e56c509c0db48de0eea446a122c14ef25fbbb48ad6a')
sha512sums=('d386bd072726f036a3317b2b3d173581a2219e453dc5230efd4d5158a925e70b844f6fb10c321cbd276b0ce28829f29cc915743da41608648c1d482334e52530')

export PBR_VERSION=$pkgver

build(){
	cd $_pyname-$pkgver
	python setup.py build
}

check(){
	cd $_pyname-$pkgver
	stestr run
}

package(){
	cd $_pyname-$pkgver
	python setup.py install --root="$pkgdir/" --optimize=1
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}