# -*- 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.4.0
license             PSF
supported_archs     noarch
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  56a915835f46e048c624523fed624ab8a3e39205 \
                    sha256  1511434bb92bf8dd198c12b1cc812e800d4181cfcb867674e0f8279cc93087aa \
                    size    49708

python.versions     36 37 38 39 310 311

python.pep517       yes

if {${name} ne ${subport}} {
    # break circular dependency with py-python-install
    python.add_dependencies no
    depends_build-append   port:py-bootstrap-modules
    depends_lib-append     port:python${python.version}
    build.env-append    PYTHONPATH=${prefix}/share/py-bootstrap-modules
    build.args      --skip-dependency-check
    destroot.env-append PYTHONPATH=${prefix}/share/py-bootstrap-modules

    if {${python.version} == 36} {
        epoch       1
        version     4.1.1
        revision    0
        checksums   rmd160 375113f2897c0dc1c7c3ab4cf7bb0c391ddc8640 \
                    sha256 1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42 \
                    size   26694
    }

    livecheck.type          none
}
