# -*- 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-license-expression
version             30.4.4
revision            0

checksums           rmd160  565f0123d5e0639d269e1ac16c53e5aff68df8a9 \
                    sha256  73448f0aacd8d0808895bdc4b2c8e01a8d67646e4188f887375398c761f340fd \
                    size    186402

python.rootname     license_expression
supported_archs     noarch
platforms           {darwin any}
maintainers         nomaintainer
license             Apache-2

description         license-expression is a comprehensive utility library to \
                    parse, compare, simplify and normalize license expressions \
                    (such as SPDX license expressions) using boolean logic.
long_description    {*}${description}

homepage            https://github.com/aboutcode-org/license-expression

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools_scm

    depends_lib-append \
                    port:py${python.version}-boolean.py

    depends_test-append \
                    port:py${python.version}-black \
                    port:py${python.version}-pytest-xdist

    test.run        yes
}
