# -*- 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.2.0
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  219465309c8b038f35e61735dc1d167554bddd09 \
                    sha256  32dacc396101825b82f9f1bbdf691c02be613130d5ab7a457e553fcd20959fdd \
                    size    489932

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
}
