mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-10-29 23:42:03 +01:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
44 lines
954 B
Plaintext
44 lines
954 B
Plaintext
# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
|
|
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
|
|
pkgname=py3-nats
|
|
_pkgname=nats.py
|
|
pkgver=2.2.0
|
|
pkgrel=1
|
|
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
|
|
"
|
|
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 --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
9829602b33be0f04cc25f9d8585264075a8edc705bcfed3036dd72097403d57cb4e0ccddfa5ab3528aa9189753b2313194a7c3d7977c7264f174d5f86352971b nats.py-2.2.0.tar.gz
|
|
"
|