summaryrefslogtreecommitdiff
path: root/testing/sshuttle/APKBUILD
blob: 59c1e0ced682ee3119e8712e2faeb1139d899924 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sshuttle
pkgver=1.1.1
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-setuptools"
checkdepends="py3-pytest py3-pytest-cov py3-mock py3-flake8"
options="!check" # TODO: fix testsuite
source="https://github.com/sshuttle/sshuttle/archive/v$pkgver/sshuttle-$pkgver.tar.gz"

build() {
	echo "version = '$pkgver'" > sshuttle/version.py
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
4f670bee34653e47cf7a0c8550b2ac734230ccf0d4fb6191ae3a0c6404847c788c3cdf033bc1571f49472729029077aa6d6970f4bce78fa4980f1f29ccbd2f7a  sshuttle-1.1.1.tar.gz
"