# Contributor: Henrik Riomar # Maintainer: Henrik Riomar pkgname=py3-nats _pkgname=nats.py pkgver=2.3.1 pkgrel=0 pkgdesc="Python3 client for NATS" url="https://github.com/nats-io/nats.py" arch="noarch" license="Apache-2.0" checkdepends=" nats-server py3-pytest py3-pytest-cov " makedepends="py3-setuptools" depends=" py3-aiohttp python3 " subpackages="$pkgname-pyc" source="https://github.com/nats-io/nats.py/archive/v$pkgver/nats.py-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" case "$CARCH" in x86|armv7|armhf|s390x|ppc64le) options="!check";; # no nats-server package *) ;; esac build() { python3 setup.py build } check() { python3 -m pytest -k "not test_fetch_n and not test_stream_management" } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" 40be95120de1568ef8f824da4f02398bc9bc92daf332f9397df4865d7e9db5aeeafde5b0551adc21c1b64f4c074cd4576d9ba038cf425bfdee3e8812d3ae0412 nats.py-2.3.1.tar.gz "