# -*- 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-regions
version             0.5
revision            0

categories-append   science
license             BSD
maintainers         nomaintainer

description         Astropy affilated package for region handling
long_description    {*}${description}

homepage            https://github.com/astropy/regions

checksums           rmd160  f8b95ef66a7e0a37f7001ce372885367afff46cc \
                    sha256  ac89875ac8b52277322a54e952d3bd7d1f48510aaf342354e07df005996459ae \
                    size    666760

python.versions     39 310

if {${name} ne ${subport}} {
    patchfiles      patch-pyproject.toml.diff

    depends_build-append \
                    port:py${python.version}-cython \
                    port:py${python.version}-setuptools_scm \
                    port:py${python.version}-extension-helpers

    depends_lib-append \
                    port:py${python.version}-astropy \
                    port:py${python.version}-numpy
}
