# -*- 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-wcwidth
version             0.9.1
revision            0

license             MIT
maintainers         nomaintainer
description         Library for building powerful interactive command lines in Python
long_description    {*}${description}
homepage            https://github.com/jquast/wcwidth/

platforms           {darwin any}

checksums           rmd160  7e211991bb9ba727a921daca73320be4c9a6c5fb \
                    sha256  5823209b0d43af322ce698c689380d7c15ca31fa8e6e3be8459f27031bef0af5 \
                    size    952410

python.versions     27 310 311 312 313 314
python.pep517_backend hatch

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

    if {${python.version} == 27} {
        version     0.2.14
        revision    0
        checksums   rmd160  aa5216ca112ebfa19e78f563007e70dc012e1d4b \
                    sha256  4d478375d31bc5395a3c55c40ccdf3354688364cd61c4f6adacaa9215d0b3605 \
                    size    102293
        supported_archs noarch

        depends_lib-append \
                    port:py${python.version}-backports-functools_lru_cache
    }

    test.run        yes
}
