# -*- 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             26.2.16
revision            0

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

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  96d3e059075b2440b89c11bf5ce56df8d264b7ba \
                    sha256  5b6027d453fcd6060112b951dd010f01f168b51b4bf8a1f1fc8c95c8d94a0801 \
                    size    7711342

python.versions     310 311 312 313 314

python.pep517_backend \
                    poetry

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

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