# -*- 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.16.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  08f3acb841d9e07c4dcc3f4c6f8f79fc5f640477 \
                    sha256  dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5 \
                    size    113555

python.versions     36 37 310 311 312 313 314

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
    }

    livecheck.type          none
}
