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

PortSystem          1.0
PortGroup           python 1.0
PortGroup           github 1.0

github.setup        python-hyper hyperlink 21.0.0 v
github.tarball_from archive
name                py-hyperlink
revision            0

categories-append   devel net
license             MIT
supported_archs     noarch
platforms           {darwin any}
maintainers         {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description         A pure-Python implementation of immutable URLs
long_description    Hyperlink is a pure-Python package and requires nothing but Python.

checksums           rmd160  24370cb8ea0f30bd22a41b370628e1617ed9e5c2 \
                    sha256  6fdef854115f413e5d8a0241e1e67e93f0bd29c1d1317a742f3fdb189e1d57b5 \
                    size    141040

python.versions     27 39 310 311 312 313 314

if {${name} ne ${subport}} {
    depends_run-append    \
        port:py${python.version}-idna

    if {${python.version} < 35} {
        depends_run-append    \
                    port:py${python.version}-typing
    }

    depends_test-append  \
        port:py${python.version}-hypothesis

    test.run        yes
}
