# -*- 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-itsdangerous
version             2.2.0
revision            0
epoch               1

checksums           rmd160  773f18f034d9aabc1a4bcbc2c8416098feb76945 \
                    sha256  e0050c0b7da1eea53ffaf149c0cfbb5c6e2e2b69c4bef22c81fa6eb73e5f6173 \
                    size    54410

python.versions     27 39 310 311 312 313
python.pep517_backend flit
license             BSD
platforms           {darwin any}
supported_archs     noarch
maintainers         {aronnax @lpsinger} openmaintainer
description         Various helpers to pass trusted data to untrusted environments and back
long_description    {*}${description}
homepage            https://palletsprojects.com/p/itsdangerous/

if {${name} ne ${subport}} {

    # https://trac.macports.org/ticket/64060
    if {${python.version} == 27} {
        version     1.1.0
        checksums   rmd160  3a1b71343357fd9cef28039753c78f0bf24d91ff \
                    sha256  321b033d07f2a4136d3ec762eac9f16a10ccd60f53c0c91af90217ace7ba1f19 \
                    size    53219
    }

    depends_build-append \
                    port:py${python.version}-setuptools

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

    test.run        yes

    livecheck.type  none
}
