# -*- 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.2
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  62d16b379f04cf567ed2c2c3e03361a15aa0a0f0 \
                    sha256  eeb2eee300a7de16117a86bbb9adb7b0647158edccfb8076f260e0535a439448 \
                    size    172292

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
