archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-opentracing / trunk / PKGBUILD
blobfad4b6f16f48cf3524ac4f02e0c6eab1b529774a
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-opentracing
4 pkgver=2.4.0
5 pkgrel=5
6 pkgdesc="OpenTracing API for Python"
7 url="https://github.com/opentracing/opentracing-python"
8 license=('Apache')
9 arch=('any')
10 depends=('python')
11 makedepends=('python-setuptools')
12 checkdepends=('python-gevent' 'python-mock' 'python-pytest' 'python-tornado')
13 source=("https://github.com/opentracing/opentracing-python/archive/$pkgver/$pkgname-$pkgver.tar.gz" "python-3.11-compat.patch")
14 sha512sums=('de5e5a211fd487039e5658fc6303f3521ee038e205d9d1560cb33f3a66fd0de8d666b2adc785fe2683b4993879e5124ba25467feb17fe68b1cbddc0581ca16b3'
15             '920ae7fd81d33957dbc46105a62371022391645a40a23debe52764771f9562e287cae7f3485894bb562ce5bf6f91b6b9ae37a16ff8c1dec6099e235e4fba3dad')
17 prepare() {
18   cd opentracing-python-$pkgver
19   patch -Np1 -i ${srcdir}/python-3.11-compat.patch
22 build() {
23   cd opentracing-python-$pkgver
24   python setup.py build
27 check() {
28   cd opentracing-python-$pkgver
29   pytest tests
30   python -m testbed
33 package() {
34   cd opentracing-python-$pkgver
35   python setup.py install --root="$pkgdir" --optimize=1