# -*- 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

name                py-typing_extensions
version             4.15.0
license             PSF
supported_archs     noarch
platforms           {darwin any}
maintainers         {toby @tobypeterson} openmaintainer
description         Backported and Experimental Type Hints for Python
long_description    The typing module was added to the standard library in Python 3.5 \
                    on a provisional basis and will no longer be provisional in Python \
                    3.7. However, this means users of Python 3.5 - 3.6 who are unable \
                    to upgrade will not be able to take advantage of new types added \
                    to the typing module, such as typing.Text or typing.Coroutine. \
                    The typing_extensions module contains both backports of these \
                    changes as well as experimental types that will eventually be \
                    added to the typing module, such as Protocol or TypedDict.

homepage            https://github.com/python/typing_extensions

checksums           rmd160  29c9c69bfc01992b4fa09d3312d19a9498d51511 \
                    sha256  0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466 \
                    size    109391

python.versions     36 37 38 39 310 311 312 313

python.pep517       yes
python.pep517_backend   flit

if {${name} ne ${subport}} {
    if {${python.version} in {36 37}} {
        # break circular dependency with py-build/py-python-install
        set bootstrap_portname [expr {${python.version} >= 37 ? "py-bootstrap-modules" : "py36-bootstrap-modules"}]
        python.add_dependencies no
        depends_build-append   port:${bootstrap_portname}
        depends_lib-append     port:python${python.version}
        build.env-append    PYTHONPATH=${prefix}/share/${bootstrap_portname}
        build.args      --skip-dependency-check
        destroot.env-append PYTHONPATH=${prefix}/share/${bootstrap_portname}
    }

    if {${python.version} == 36} {
        epoch       1
        version     4.1.1
        revision    0
        checksums   rmd160 375113f2897c0dc1c7c3ab4cf7bb0c391ddc8640 \
                    sha256 1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42 \
                    size   26694
    } elseif {${python.version} == 37} {
        version     4.7.1
        revision    0
        checksums   rmd160  d952e5255e5c9dc0203e6fe82f83591e3837b5c9 \
                    sha256  b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2 \
                    size    72876
    } elseif {${python.version} == 38} {
        version     4.13.2
        revision    0
        checksums   rmd160  7ae53ea91b51f887526c5cf4343dfb8e4387c5e0 \
                    sha256  e6c81219bd689f51865d9e372991c540bda33a0379d5573cddb9a3a23f7caaef \
                    size    106967
    }

    livecheck.type          none
}
