# -*- 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-deprecated
version             3.0.0
revision            0

license             MIT
supported_archs     noarch
platforms           {darwin any}
maintainers         nomaintainer

description         Python @deprecated decorator to deprecate old python classes, \
                    functions or methods.
long_description    {*}${description}

homepage            https://github.com/laurent-laporte-pro/deprecated

checksums           rmd160  6632f18c6a5013154d6f7365d8fbafb1d6b701db \
                    sha256  16850204d3a1e6bb0acd06bff48d96e8b0a0d25d1c52f71705405a0f4894192d \
                    size    166912

python.versions     310 311 312 313 314
python.pep517_backend hatch

if {${name} ne ${subport}} {
    if {${python.version} < 312} {
        version     1.3.1
        revision    0
        checksums   rmd160  6632f18c6a5013154d6f7365d8fbafb1d6b701db \
                    sha256  16850204d3a1e6bb0acd06bff48d96e8b0a0d25d1c52f71705405a0f4894192d \
                    size    166912
        python.pep517_backend setuptools
    }

    depends_run-append \
                    port:py${python.version}-wrapt
}
