# -*- 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
PortGroup           github 1.0

github.setup        twisted constantly 23.10.4
github.tarball_from archive
name                py-constantly
revision            0

categories-append   devel
license             MIT
platforms           {darwin any}
supported_archs     noarch
maintainers         {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description         A library that provides symbolic constant support
long_description    {*}${description}. \
    It includes collections and constants with text, numeric, and bit flag values. \
    Originally twisted.python.constants from the Twisted project.

checksums           rmd160  4a8e84a1261f3d99045a3e9b073614c9743be2e2 \
                    sha256  c158c7a71ced2a77471ae851089b4ea15c15fce968d3f0105a15819666cd641a \
                    size    31228

python.versions     27 310 311 312 313 314

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        github.setup    twisted constantly 15.1.0
        revision        0
        checksums       rmd160  7a9d1776bb3b44b1982ba01ce50f269d67c1e4a7 \
                        sha256  be63c40ef853ee785045a1d20327d8153db9291f9aaff552796bed5272f9dd60 \
                        size    40635

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