# -*- 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.1.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  93e2c0e70d37d619e3d3eaceae51d8612b4b8d3b \
                    sha256  ebc43ebeb357be98984b573d975118008dee3410d8df28b054ef2943cf3e367e \
                    size    471132

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
}
