# -*- 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           github 1.0
PortGroup           python 1.0

name                py-httpcore2
github.setup        pydantic httpx2 2.4.0 v
github.tarball_from archive
revision            0

license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         The HTTP Core package provides a minimal low-level HTTP client, \
                    which does one thing only. Sending HTTP request
long_description    {*}${description}
homepage            https://github.com/pydantic/httpx2/tree/main/src/httpcore2

checksums           rmd160  3216c91fead06853ee515778b7d96db41ac95f80 \
                    sha256  c8901bff1107e2bb7b401ce16bb0f2cd2fb940798bfe3d31fb6acfc5e0f6d60a \
                    size    2049043

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}-h11 \
                    port:py${python.version}-truststore

    configure.dir   ${worksrcpath}/src/httpcore2
    build.dir       ${configure.dir}
}
