# -*- 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.5.20
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 35 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  ead90c070d06209ceac310ff6e7fe6b30876e8bb \
                    sha256  69dea482ab64caa7b9f6aba1c6bf48bb6a5448d1c0f1b17ab42ad8c763a5344d \
                    size    135422

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
    }

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