# -*- 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-certifi
version             2026.7.22
set distversion     [regsub -all {(\.)0} ${version} {\1}]
revision            0

categories-append   devel net
license             {MPL-1.1 GPL-2+ LGPL-2.1+}
supported_archs     noarch
platforms           {darwin any}

python.versions     27 36 310 311 312 313 314

maintainers         {stromnov @stromnov} openmaintainer

description         Python package for providing Mozilla's CA Bundle.
long_description    {*}${description}

homepage            https://pypi.python.org/pypi/certifi

distname            ${python.rootname}-${distversion}

checksums           rmd160  5341198266a259910ebc64df5a604015ee583083 \
                    sha256  741e2c3b351ddf169a738da9f2c048608ff7f2c5cc02f1ebc6b118bb090d5d55 \
                    size    138112

if {${name} ne ${subport}} {
    if {${python.version} < 37} {
        version             2021.10.8
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  8972d4fb7b192cf6e3a13a7ea9dfc497b0866eea \
                            sha256  78884e7c1d4b00ce3cea67b44566851c4343c120abd683433ce934a68ea58872 \
                            size    151214
        python.pep517       no
    } else {
        test.run        yes
    }

    livecheck.type      none
} else {
    livecheck.version   ${distversion}
}
