# -*- 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-structlog
version             25.3.0
revision            0

supported_archs     noarch
platforms           {darwin any}
license             {MIT Apache-2}
maintainers         nomaintainer

description         Structured Logging for Python
long_description    {*}${description}

homepage            https://www.structlog.org/

checksums           rmd160  f822ab942c161df2567b63fff017f877e66baf3f \
                    sha256  8dab497e6f6ca962abad0c283c46744185e0c9ba900db52a423cb6db99f7abeb \
                    size    1367514

python.pep517_backend   hatch

python.versions     39 310 311 312 313

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

    depends_test-append port:py${python.version}-pytest-asyncio \
                        port:py${python.version}-freezegun \
                        port:py${python.version}-pretend \
                        port:py${python.version}-simplejson

    test.run            yes
    test.env-append     PYTHONPATH=${destroot}${python.pkgd}
}
