# -*- 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.5.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  960e7ab1983d0c62e5047afe8b99a0c1b5ca953f \
                    sha256  d1b3b231fcccc3089555c8cf1cb2e9d59779a5da72ed3e0258c85cf2bd1bd62e \
                    size    2053138

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}
}
