archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-kazoo / trunk / PKGBUILD
blob5fa5d549edd5443448413f4b558eed79c9883557
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 _name=kazoo
4 pkgname=python-kazoo
5 pkgver=2.9.0
6 pkgrel=2
7 pkgdesc="A high-level Python library that makes it easier to use Apache Zookeeper"
8 arch=(any)
9 url="https://github.com/python-zk/kazoo"
10 license=(Apache)
11 depends=(python-six)
12 makedepends=(python-build python-installer python-setuptools python-wheel)
13 # checkdepends=(python-nose python-objgraph)
14 source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
15 sha512sums=('81aa27e4b406622059bfecaac157462adb107630638fb4eed62b0e5460e5312768140fa6c2ab63def35b4e726819b74a90b03b3ab733af5550cb698414a29b84')
16 b2sums=('bbc1fc9235c234c27c8179b094b48fe6bbde0d6a4e41b0f752f466141bee9d28d25eeeacd7305c50ad73f4a11de35369be5d560fc4d365840b980e905118bae3')
18 build() {
19   cd $_name-$pkgver
20   python -m build --wheel --no-isolation
23 # NOTE: check() requires running zookeeper
24 # check() {
25 #   cd $_name-$pkgver
26 #   export PYTHONPATH="build:${PYTHONPATH}"
27 # }
29 package() {
30   cd $_name-$pkgver
31   python -m installer --destdir="$pkgdir" dist/*.whl
32   install -vDm 644 {CHANGES,CONTRIBUTING,README}.md -t "$pkgdir/usr/share/doc/$pkgname/"