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

license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         The Advanced Scientific Data Format (ASDF) is a next-generation interchange format for scientific data.
long_description    {*}${description} This package contains the Python implementation of the ASDF Standard.
homepage            https://github.com/asdf-format/asdf

platforms           {darwin any}
supported_archs     noarch

checksums           rmd160  7edc72ad4b3ab748eff6a95b85ba2e2fca6fb504 \
                    sha256  c96c936cb65e75d8778d889f274f79ac90464a9ef2e7b794227dc204235fdcdf \
                    size    903798

python.versions     310 311 312 313 314

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

    depends_lib-append  \
                    port:py${python.version}-asdf-standard \
                    port:py${python.version}-asdf-transform-schemas \
                    port:py${python.version}-attrs \
                    port:py${python.version}-jmespath \
                    port:py${python.version}-numpy \
                    port:py${python.version}-packaging \
                    port:py${python.version}-semantic_version \
                    port:py${python.version}-yaml

    variant lz4 description {lz4 bindings} {
         depends_lib-append \
                        port:py${python.version}-lz4
    }
}
