# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        facebookresearch hydra 1.0.6 v
revision            0
name                py-${github.project}-core

license             MIT
maintainers         nomaintainer
platforms           darwin

description         Hydra is a framework for elegantly configuring complex applications

long_description    Hydra is an open-source Python framework that \
                    simplifies the development of research and other \
                    complex applications. The key feature is the \
                    ability to dynamically create a hierarchical \
                    configuration by composition and override it \
                    through config files and the command line. The \
                    name Hydra comes from its ability to run multiple \
                    similar jobs - much like a Hydra with multiple \
                    heads.

homepage            https://hydra.cc/

checksums           rmd160  88db493f9b33210730cd466d78de2f14de0cf038 \
                    sha256  0f31a795e9ff181c48a4fd2fb3828aaa9714ba95044332f53fa747ffdca6a5a2 \
                    size    2803534

python.versions     37 38 39

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

    depends_run-append \
                    port:py${python.version}-antlr4-python3-runtime \
                    port:py${python.version}-omegaconf

    depends_test-append \
                    port:py${python.version}-pytest

    test.run        yes
    test.cmd        py.test-${python.branch}
    test.target     tests
}
