# -*- 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-pyvo
version             1.8
revision            0
license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         Astropy affiliated package for accessing Virtual Observatory data and services
long_description    {*}${description}
homepage            https://github.com/astropy/pyvo

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  ae81f1389bf2e6b29d28211c301f748d8bfb0ed8 \
                    sha256  66f4889fd8e39dddf46fe498615d36156d494f6a2bec53886baf1c2c54322861 \
                    size    2116488

python.versions     310 311 312 313

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

    depends_lib-append \
                    port:py${python.version}-astropy \
                    port:py${python.version}-defusedxml \
                    port:py${python.version}-pillow \
                    port:py${python.version}-requests

    patchfiles      patch-pyproject.toml.diff
}
