# -*- 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-httpx2
version             2.4.0
revision            0

license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         HTTPX2 is a fully featured HTTP client library for Python.
long_description    {*}${description} It includes an integrated command line client, \
                    has support for both HTTP/1.1 and HTTP/2, and provides both sync and async APIs.
homepage            https://github.com/pydantic/httpx2

checksums           rmd160  9e76bd1d3db364f44aa0fac6633daff8034f6044 \
                    sha256  32e0734b61eb0824b3f56a9e98d6d92d381a3ef12c0045aa917ee63df6c411ef \
                    size    81691

python.versions     310 311 312 313 314

python.pep517_backend \
                    hatchling

if {${name} ne ${subport}} {
    depends_build-append  \
                    port:py${python.version}-hatch-fancy-pypi-readme \
                    port:py${python.version}-uv-dynamic-versioning

    depends_lib-append  \
                    port:py${python.version}-anyio \
                    port:py${python.version}-httpcore2 \
                    port:py${python.version}-idna \
                    port:py${python.version}-truststore

    if {${python.version} <= 312} {
    depends_lib-append  \
                    port:py${python.version}-typing_extensions
    }

    patchfiles      patch-httpcore2.diff
}
