# -*- 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-yarl
version             1.18.0
revision            0
categories-append   devel
license             Apache-2

python.versions     38 39 310 311 312 313

maintainers         {ipglider.org:miguel @ipglider} openmaintainer

description         Yet another URL library.
long_description    URL library with immutable URL objects.

homepage            https://github.com/aio-libs/yarl

checksums           rmd160  ca7f135c8126f81a335b8a1932aa38c4fc0fd508 \
                    sha256  20d95535e7d833889982bfe7cc321b7f63bf8879788fee982c76ae2b24cfb715 \
                    size    180098

if {${name} ne ${subport}} {
    if {${python.version} == 38} {
        version     1.15.2
        revision    0
        checksums   rmd160  7c948c00ad8a8ffc6b4dbc28a2deaca9edc82459 \
                    sha256  a39c36f4218a5bb668b4f06874d676d35a035ee668e6e7e3538835c703634b84 \
                    size    169318
    }

    depends_build-append    port:py${python.version}-cython \
                            port:py${python.version}-expandvars

    if {${python.version} < 311} {
        depends_build-append \
                            port:py${python.version}-tomli
    }

    depends_lib-append      port:py${python.version}-idna \
                            port:py${python.version}-multidict \
                            port:py${python.version}-propcache
}
