# -*- 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             2025.7.14
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 37 38 39 310 311 312 313

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  d5b1e4d118d8527347bd6af4fcf4b6d7b21eb0d8 \
                    sha256  8ea99dbdfaaf2ba2f9bac77b9249ef62ec5218e7c2b2e903378ed5fccf765995 \
                    size    163981

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}
}
