# -*- 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.0
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  95617793ad03fe37cd4375b367ac5c23db16ce00 \
                    sha256  57af147d4c8d2fe978cbb2b8611aaee6a3521004e52650a85c7a82cd09c96224 \
                    size    69755

python.default_version \
                    312

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 poetry
