# -*- 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-optype
version             0.19.0
revision            0

license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         Building blocks for precise type hints
long_description    {*}${description}
homepage            https://github.com/jorenham/optype/

checksums           rmd160  2e1d8ac7dd38200b3b975e78f16b597203535d9f \
                    sha256  50ce4c0ca419026eeae4130dc90c6a0b9a0b54ffe1d940fc26e8d0058903de4c \
                    size    116633

python.versions     312 313 314

python.pep517_backend \
                    uv

if {${name} ne ${subport}} {
    if {${python.version} < 313} {
        depends_lib-append \
                    port:py${python.version}-typing_extensions
    }

    variant numpy description "Add numpy support" {
        depends_lib-append  \
                    port:py${python.version}-numpy \
                    port:py${python.version}-numpy-typing-compat
    }
}
