# -*- 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-country
python.rootname     pycountry
version             24.6.1
revision            0

supported_archs     noarch
platforms           {darwin any}
license             LGPL-2.1
maintainers         nomaintainer

description         ISO country, subdivision, language, currency and script definitions and their translations
long_description    {*}${description}.

homepage            https://github.com/flyingcircusio/pycountry

checksums           rmd160  203e31756abe64ea481f50a6d0fdd5d1061aaa23 \
                    sha256  b61b3faccea67f87d10c1f2b0fc0be714409e8fcdcc1315613174f6466c10221 \
                    size    6043910

python.versions     39 310 311 312 313

python.pep517_backend \
                    poetry

if {${name} ne ${subport}} {
    patchfiles-append \
                    disable-failing-tests.diff

    test.run        yes
    test.env-append PYTHONPATH=${worksrcpath}/src
}
