diff options
-rw-r--r-- | community/salt/APKBUILD | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/community/salt/APKBUILD b/community/salt/APKBUILD index 4d5a33395a..afaec2f0ad 100644 --- a/community/salt/APKBUILD +++ b/community/salt/APKBUILD @@ -3,12 +3,12 @@ # Maintainer: Kevin Daudt <kdaudt@alpinelinux.org> pkgname=salt pkgver=2019.2.2 -pkgrel=3 +pkgrel=4 pkgdesc="A parallel remote execution system" url="https://github.com/saltstack/salt" arch="noarch !s390x" license="Apache-2.0" -depends="py3-tornado py3-yaml py3-jinja2 py3-markupsafe py3-msgpack +depends="py3-tornado5 py3-yaml py3-jinja2 py3-markupsafe py3-msgpack py3-pycryptodome py3-pyzmq py3-six py3-requests py3-pygit2 py3-dateutil py3-distro procps " @@ -32,6 +32,14 @@ source="https://pypi.io/packages/source/s/salt/salt-$pkgver.tar.gz " options="!check" # depends on pytestsalt +prepare() { + default_prepare + + find tests salt -type f -name '*.py' -exec sed -i -E \ + -e 's/^(\s*(from|import)) tornado/\1 tornado5/' \ + -e 's/tornado\./tornado5./g' {} \; +} + build() { python3 setup.py build } |