# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8::et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                sshuttle
version             1.3.1
revision            0

homepage            https://sshuttle.readthedocs.io/en/stable

description         Transparent proxy server that works as a poor man's VPN.

long_description    {*}${description} Forwards over ssh. Doesn't require \
                    admin. Works with Linux and MacOS. Supports DNS tunneling.

categories          net python
license             LGPL-2.1
platforms           {darwin any}
supported_archs     noarch
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  3c40bdb321f6265abfc0e0d84f20accbf2bf375b \
                    sha256  04c2b16164b4b2b5945ff17c4556a8a2f0d63fb1ea2ca032748f047852ff2fcb \
                    size    166795

python.default_version \
                    313

test.run            yes
test.env            PYTHONPATH=${worksrcpath}/build/lib
test.cmd            pytest-${python.branch}
test.pre_args       --cov=sshuttle \
                    --cov-branch \
                    --cov-report=term-missing
test.args           ./tests

depends_test-append port:py${python.version}-flake8 \
                    port:py${python.version}-pyflakes \
                    port:py${python.version}-pytest \
                    port:py${python.version}-pytest-cov \
                    port:py${python.version}-pytest-runner

python.pep517_backend hatch
