mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
37 lines
1.4 KiB
Text
37 lines
1.4 KiB
Text
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
|
|
pkgname=py3-asyncssh
|
|
_relname=${pkgname#"py3-"}
|
|
pkgver=2.12.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="noarch !s390x" # tests hang
|
|
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="
|
|
b7772fc7fe0a0d101ce1542b8e149e265dde0fdc3e824936f7b2db799f7580bbda5128501a6d51e6090c071014bac96897c2787442c53e333aa38bb231d66ccf asyncssh-2.12.0.tar.gz
|
|
"
|