# -*- 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.1.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  cdc2e7a40b49793ba4b7013caa60086bdb8cef89 \
                    sha256  2ef2a572e0e27f09664965d31a576afe64e46ac6084ef5cec3c2b8cd6e4e3ad3 \
                    size    1364973

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