# -*- 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-redis
version             7.1.0
revision            0
categories-append   devel
license             MIT
supported_archs     noarch
platforms           {darwin any}

python.versions     39 310 311 312 313 314
python.pep517_backend   hatch

maintainers         {stromnov @stromnov} openmaintainer

description         Python client for Redis key-value store
long_description    {*}${description}

homepage            https://github.com/redis/redis-py

checksums           rmd160  3d025485d0197b41a1587cc66a697c14d561d65a \
                    sha256  b1cc3cfa5a2cb9c2ab3ba700864fb0ad75617b41f01352ce5779dabf6d5f9c3c \
                    size    4796669

if {${name} ne ${subport}} {
    if {${python.version} <= 39} {
        version             5.2.1
        revision            0
        checksums           rmd160  26bd5a511e4174d1e76f3e1a942ee3c733369b76 \
                            sha256  16f2e22dff21d5125e8481515e386711a34cbec50f0e44413dd7d9c060a54e0f \
                            size    4608355
        python.pep517_backend   setuptools
    }

    if {${python.version} < 311} {
        depends_lib-append  port:py${python.version}-async-timeout
    }
}
