# -*- 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.1
revision            0

checksums           rmd160  6a8c43b8af3d64485b29438bc493a80703aff2eb \
                    sha256  9f02105f9e0fcecba6a85dfbbed7d94ea1c3a70cf23ddbfb5adf3438a6f6fce0 \
                    size    177184

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

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
}
