2026-01-29 16:39:08 +01:00

49 lines
1.1 KiB
Plaintext

# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sshuttle
pkgver=1.3.2
pkgrel=0
pkgdesc="Transparent proxy server using ssh"
url="https://github.com/sshuttle/sshuttle"
arch="noarch"
license="GPL-2.0-only"
depends="python3 py3-psutil"
makedepends="
py3-gpep517
py3-hatchling
py3-poetry-core
py3-setuptools
py3-sphinx
py3-wheel
"
checkdepends="
py3-flake8
py3-mock
py3-pytest
py3-pytest-cov
"
subpackages="$pkgname-doc $pkgname-pyc"
source="https://github.com/sshuttle/sshuttle/archive/v$pkgver/sshuttle-$pkgver.tar.gz"
build() {
echo "version = '$pkgver'" > sshuttle/version.py
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
cd docs && make man
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" .dist/*.whl
install -Dm0644 -t "$pkgdir"/usr/share/man/man1/ docs/_build/man/*.1
}
sha512sums="
efa50347a880fc697d5824dc2071816a6ee610d7b6dcc6ad7246dfa27ce1ac489ae4dadd59ec8e6bacfd504a611d26745c9ad334bdf5c1c177bf5583008faa4d sshuttle-1.3.2.tar.gz
"