# -*- 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             26.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  58245d2d0662644ef96791153aedb36962770a09 \
                    sha256  f63a716cbd1b1291cf7661de7794b455acfa4c43c5bcf1630e6ad5ddc1adb3b7 \
                    size    1459881

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