Date: Friday, August 23, 2019 @ 09:02:01 Author: yan12125 Revision: 501239
upgpkg: python-autobahn 19.8.1-2 * Enable WAMP-cryptobox support via python-pytrie * Fix tests with python-twisted 19.7.0. See https://github.com/crossbario/autobahn-python/issues/1235 Modified: python-autobahn/trunk/PKGBUILD ----------+ PKGBUILD | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-08-23 08:25:15 UTC (rev 501238) +++ PKGBUILD 2019-08-23 09:02:01 UTC (rev 501239) @@ -4,7 +4,7 @@ pkgname=python-autobahn pkgver=19.8.1 -pkgrel=1 +pkgrel=2 pkgdesc='Real-time framework for Web, Mobile & Internet of Things' arch=(x86_64) url='https://crossbar.io/autobahn/' @@ -12,7 +12,8 @@ depends=(python-cffi python-twisted python-six python-txaio python-wsaccel python-setuptools python-cryptography) makedepends=(python-argon2_cffi python-cbor python-flatbuffers - python-msgpack python-passlib python-pynacl python-ubjson) + python-msgpack python-passlib python-pynacl python-pytrie + python-ubjson) checkdepends=(python-mock python-pytest python-pytest-asyncio) optdepends=( 'python-cbor: CBOR serializer support' @@ -21,12 +22,19 @@ 'python-ubjson: UBJSON serializer support' 'python-argon2_cffi: WAMP-SCRAM authentication support' 'python-passlib: WAMP-SCRAM authentication support' - 'python-pynacl: WAMP-cryptosign support' + 'python-pynacl: WAMP-cryptosign and WAMP-cryptobox support' + 'python-pytrie: WAMP-cryptobox support' ) source=(https://files.pythonhosted.org/packages/source/a/autobahn/autobahn-$pkgver.tar.gz) sha256sums=('294e7381dd54e73834354832604ae85567caf391c39363fed0ea2bfa86aa4304') +prepare() { + cd "$srcdir/autobahn-$pkgver" + # test_depleting checks whether the entropy on the running machine can be depleted or not. + # Unrelated to autobahn and makes the test suite flaky + sed -i -r 's/^(\s*)(def test_depleting)/\[email protected]("flaky")\n\1\2/' autobahn/test/test_rng.py +} build() { cd "$srcdir/autobahn-$pkgver" AUTOBAHN_USE_NVX=1 python setup.py build @@ -35,10 +43,8 @@ check() { cd "$srcdir/autobahn-$pkgver" pyver=$(python -c "import sys; print('{}.{}'.format(*sys.version_info[:2]))") - # test_depleting checks whether the entropy on the running machine can be depleted or not. - # Unrelated to autobahn and makes the test suite flaky - USE_TWISTED=1 PYTHONPATH=.:build/lib.linux-$CARCH-$pyver pytest -v autobahn -k 'not test_depleting' - USE_ASYNCIO=1 PYTHONPATH=.:build/lib.linux-$CARCH-$pyver pytest -v autobahn -k 'not test_depleting' + USE_TWISTED=1 PYTHONPATH=.:build/lib.linux-$CARCH-$pyver trial3 autobahn + USE_ASYNCIO=1 PYTHONPATH=.:build/lib.linux-$CARCH-$pyver pytest -v autobahn } package() {
