# -*- 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.5.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  8e00454462b05b8f00e09db1e6649d4bbbee8b00 \
                    sha256  098522a3bebed9153d4570c6d0288abf80a031dfdb2048d59a49e9dc2190fc98 \
                    size    1460830

python.pep517_backend   hatch

python.versions     310 311 312 313 314

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