# -*- 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-asdf-astropy
python.rootname     asdf_astropy
version             0.11.0
revision            0

license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         This package includes plugins that provide ASDF serialization \
                    support for astropy objects.
long_description    {*}${description} The plugins are automatically enabled when the \
                    package is installed.
homepage            https://github.com/astropy/asdf-astropy

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  f4f676ab73391f0d9536d7a6fbe1fc0c45443c1e \
                    sha256  6944700e3394a324a23772bdf97abb9803cd66a86b095101a548e9dfc650e2c0 \
                    size    82817

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    if {${python.version} < 311} {
        version     0.10.1
        revision    0

        checksums   rmd160  ce28251840d29d6cca20adb95dbf56cd95b9d2ac \
                    sha256  48b0bcdb0ad39339f8b2d00edad280ccf997bd1558492f82285b451639a82b27 \
                    size    81722
    }

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

    depends_lib-append  \
                    port:py${python.version}-asdf \
                    port:py${python.version}-asdf-coordinates-schemas \
                    port:py${python.version}-asdf-standard \
                    port:py${python.version}-asdf-transform-schemas \
                    port:py${python.version}-astropy \
                    port:py${python.version}-numpy \
                    port:py${python.version}-packaging
}
