# -*- 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.17.2
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  6d0a2e84b65d7a08843ed5998c8f934504a727b3 \
                    sha256  753eaaa0c7195244c84b5cc159dc8204b7fd99f716f11198f999f2332a86b178 \
                    size    178947

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
}
