# Contributor: Duncan Bellamy # Maintainer: Duncan Bellamy pkgname=py3-asyncssh _relname=${pkgname#"py3-"} pkgver=2.16.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/" arch="all" license="EPL-2.0" depends="python3 py3-cryptography py3-typing-extensions" makedepends="py3-gpep517 py3-installer py3-setuptools py3-wheel" checkdepends="py3-bcrypt py3-openssl py3-pytest" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/a/asyncssh/asyncssh-$pkgver.tar.gz" builddir="$srcdir/$_relname-$pkgver" # secfixes: # 2.14.2-r0: # - CVE-2023-48795 build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/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/*.whl } sha512sums=" d47a0450709e48cc781f03dc2fc1f153f4fd59bce59354085ff36ef3af37223071566136d5a48211024db41400e7b82b918921942d8f5df203b98275e6fd460a asyncssh-2.16.0.tar.gz "