Skip to content

Commit

Permalink
testing/py3-nats: enable tests
Browse files Browse the repository at this point in the history
Switch to getting the release directly from github as that contains the test
suite.

The tests need the nats-server package.

For now deselect a failing test
  • Loading branch information
HRio committed Aug 11, 2022
1 parent ae01e7d commit 297a19c
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions testing/py3-nats/APKBUILD
Original file line number Diff line number Diff line change
@@ -1,25 +1,36 @@
# Contributor: Henrik Riomar <[email protected]>
# Maintainer: Henrik Riomar <[email protected]>
pkgname=py3-nats
_pkgname=nats-py
_pkgname=nats.py
pkgver=2.1.4
pkgrel=0
pkgrel=1
pkgdesc="Python3 client for NATS"
url="https://github.com/nats-io/nats.py"
arch="noarch"
license="Apache-2.0"
checkdepends="py3-pytest py3-pytest-cov nats-server"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/n/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
depends="python3"
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"
}

package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
0ac1b2e5bc3c0bb4911c881d0ad2c21c43a15b74c00155c9cdc7c5a89d8b2391a27d3021c056fb92922136b0bf53b43afb3bc17d300dd18f630e189058db3f94 nats-py-2.1.4.tar.gz
acbf8ef0cabfec5f96f35a7c4a73fc07915b91ba42ced2801912ef2c5aed45a371197190e4b36bb0d65ba743124a8b6860a2ef3d55d500002373a79acb7c6f36 nats.py-2.1.4.tar.gz
"

0 comments on commit 297a19c

Please sign in to comment.