# -*- 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-pycares
version             4.5.0
categories-append   devel
platforms           darwin
license             MIT

python.versions     38 39 310 311 312 313

maintainers         {ipglider.org:miguel @ipglider} openmaintainer

description         Python interface for c-ares.
long_description    pycares is a Python module which provides an interface to \
                    c-ares. c-ares is a C library that performs DNS requests \
                    and name resolutions asynchronously.

homepage            https://github.com/saghul/pycares

checksums           rmd160  05676f5aa5e15ba9dae8af908fddd91b45f4f766 \
                    sha256  025b6c2ffea4e9fb8f9a097381c2fecb24aff23fbd6906e70da22ec9ba60e19d \
                    size    821554

if {${name} ne ${subport}} {
    if {${python.version} == 38} {
        version     4.4.0
        revision    0
        checksums   rmd160  f42ef6012c8c3c5326c1fac233dcacca16b619dc \
                    sha256  f47579d508f2f56eddd16ce72045782ad3b1b3b678098699e2b6a1b30733e1c2 \
                    size    821630
    }

    depends_lib-append      port:py${python.version}-cffi

    livecheck.type   none
}
