# -*- 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-pysigma
version             2.1.0
revision            0

license             LGPL-2.1
maintainers         {mps @Schamschula} openmaintainer
description         Sigma rule processing and conversion tools
long_description    {*}${description}
homepage            https://github.com/SigmaHQ/pySigma

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  7c485be95c4251380b02c0668443895b5d875e80 \
                    sha256  b800923786ace5bc90bd35f488d81b7a2b86e04856f213f5de52c05f876901d1 \
                    size    163103

python.versions     311 312 313 314

python.pep517_backend \
                    poetry

if {${name} ne ${subport}} {
    depends_lib-append  \
                    port:py${python.version}-diskcache-community \
                    port:py${python.version}-jinja2 \
                    port:py${python.version}-jq \
                    port:py${python.version}-packaging \
                    port:py${python.version}-parsing \
                    port:py${python.version}-re2 \
                    port:py${python.version}-requests \
                    port:py${python.version}-types-pyyaml \
                    port:py${python.version}-yaml
}
