# Contributor: Duncan Bellamy # Maintainer: Duncan Bellamy pkgname=py3-asyncssh _relname=${pkgname#"py3-"} pkgver=2.13.0 pkgrel=0 pkgdesc="provides an asynchronous client and server implementation of the SSHv2 protocol on top of the Python 3.6+ asyncio framework" url="https://asyncssh.readthedocs.io/en/latest/" # ppc64le: failed test_stdin_stream test arch="noarch !ppc64le" license="EPL-2.0" depends="python3 py3-cryptography py3-typing-extensions" makedepends="py3-build py3-installer py3-setuptools py3-wheel" checkdepends="py3-bcrypt py3-openssl py3-pytest" source="https://files.pythonhosted.org/packages/source/a/asyncssh/asyncssh-$pkgver.tar.gz" builddir="$srcdir/$_relname-$pkgver" build() { python3 -m build --no-isolation --wheel } check() { python3 -m installer -d testenv dist/$_relname-$pkgver-py3-none-any.whl local sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')" # deselected tests have x11 forwarding error and openssl too old error PYTHONPATH="$PWD/testenv/$sitedir" python3 -m pytest --deselect tests/test_x11.py \ --deselect tests/test_connection.py \ --deselect tests/test_encryption.py } package() { python3 -m installer -d "$pkgdir" dist/$_relname-$pkgver-py3-none-any.whl } sha512sums=" 7575e6da247355ca229fc534f594a587922c1f371a5eb922723715ec1fa56340a644b5b5f47160b258d78edb7c922943e897c07918c0d986af9673820069471f asyncssh-2.13.0.tar.gz "