mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-19 17:25:17 +03:00
we never use pip in the venv manually made for tests- this might break 1-2 things unexpectedly, but - those should be looked at anyway - this has a severe speedup- even on a desktop machine with nvme, this makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small optimisation.
41 lines
1.3 KiB
Text
41 lines
1.3 KiB
Text
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
|
|
pkgname=py3-asyncssh
|
|
_relname=${pkgname#"py3-"}
|
|
pkgver=2.13.0
|
|
pkgrel=1
|
|
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-gpep517 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"
|
|
options="!check" # checks use sha1
|
|
|
|
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="
|
|
7575e6da247355ca229fc534f594a587922c1f371a5eb922723715ec1fa56340a644b5b5f47160b258d78edb7c922943e897c07918c0d986af9673820069471f asyncssh-2.13.0.tar.gz
|
|
"
|