blob: 7efa5ad43311761729f3f1f0987a940cf3ebd611 (
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
|
# Maintainer: Matteo Piccinini (loacker) <matteo.piccinini@gmail.com>
# Contributor: BigfootACA <bigfoot@classfun.cn>
pkgname=python-tooz
pkgver=6.3.0
pkgrel=1
pkgdesc="Coordinate distributed systems"
arch=(any)
url="https://opendev.org/openstack/tooz"
license=('Apache-2.0')
depends=('python'
'python-stevedore'
'python-voluptuous'
'python-msgpack'
'python-fasteners'
'python-tenacity'
'python-futurist'
'python-oslo-utils'
'python-oslo-serialization'
'python-testtools'
'python-pymysql'
'python-pymemcache'
'python-sysv_ipc'
'python-ddt'
'python-fixtures'
'python-psycopg2'
'python-etcd3gw'
'python-kazoo'
'python-requests'
'python-redis'
'python-zake')
makedepends=('python-build'
'python-installer'
'python-wheel'
'python-setuptools'
'tar')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
b2sums=('dc8e235ef59470d114c92e099ef28fc318a85632fe378edc4c1acf9ff3fba2c259acd260c9da89855f2e5596b203034199cbd6c611e8bbe776da9f787e065660')
prepare() {
tar zxvf "$pkgname-$pkgver.tar.gz" --strip-components=1 --one-top-level
}
build(){
cd "$pkgname-$pkgver"
PBR_VERSION=$pkgver python -m build --wheel --no-isolation
}
package(){
cd "$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 README.rst -t "$pkgdir/usr/share/$pkgname/"
install -Dm644 CONTRIBUTING.rst -t "$pkgdir/usr/share/$pkgname/"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|