# -*- 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-icalendar
version             7.0.2
revision            0

license             BSD
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer

description         The iCalendar package is a parser/generator of \
                    RFC 2445 iCalendar files.
long_description    The inspiration has come from the email package in \
                    the standard lib, which I think is pretty simple, \
                    yet efficient and powerful. The package can both \
                    generate and parse iCalendar files, and can easily \
                    be used as is. The aim is to make a package that \
                    is fully compliant to RFC 2445, well designed, \
                    simple to use and well documented.

homepage            https://icalendar.readthedocs.org/

checksums           rmd160  9618c6b871b88323f9515690a75ec7a90dca896c \
                    sha256  de844ff5cde32f539bea7644e36d8494032a926b933bedb92621f2f239760806 \
                    size    440039

python.versions     312 313 314
python.pep517_backend   hatch

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

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

    if {${python.version} < 313} {
        depends_lib-append \
                    port:py${python.version}-typing_extensions
    }

    test.run        yes
    test.args-append -k \"not test_funding_json.py"\

    depends_test-append \
                    port:py${python.version}-hypothesis \
                    port:py${python.version}-tz
}
