# -*- 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-extension-helpers
python.rootname     extension_helpers
version             1.4.0
revision            0

categories-append   devel science
license             BSD
maintainers         {aronnax @lpsinger} openmaintainer
description         Helpers to assist with building Python packages with compiled C/Cython extensions
long_description    {*}${description}
homepage            https://github.com/astropy/${python.rootname}

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  d5029cc11b062a63581a279d25a90d2c9c7fcefa \
                    sha256  78d04185f196e3e0bc5fd8418ce298b014c46f7ac609f6a8c10bf70e8c978324 \
                    size    32995

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools_scm

    if {${python.version} < 311} {
        depends_lib-append  \
                    port:py${python.version}-tomli
    }
}
