# -*- 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-keras
python.rootname     Keras
version             2.4.3
revision            0
categories-append   devel math
platforms           darwin
license             MIT
supported_archs     noarch

python.versions     27 35 36 37 38 39

maintainers         {stromnov @stromnov} openmaintainer

description         Deep Learning library for Theano and TensorFlow
long_description    ${description}

homepage            https://github.com/keras-team/keras

checksums           rmd160  56058db0b83f8c7c2c651c51fec39e0bb1280134 \
                    sha256  fedd729b52572fb108a98e3d97e1bac10a81d3917d2103cc20ab2a5f03beb973 \
                    size    291047

if {${name} ne ${subport}} {
    depends_build-append \
                        port:py${python.version}-setuptools
    depends_lib-append  port:py${python.version}-numpy \
                        port:py${python.version}-scipy \
                        port:py${python.version}-yaml \
                        port:py${python.version}-h5py \
                        port:py${python.version}-six \
                        port:py${python.version}-keras_applications \
                        port:py${python.version}-keras_preprocessing

    if {${python.version} <= 35} {
        version             2.3.1
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  b0d211a50140b2e3fe7fcbbb95b81c71cfaf100e \
                            sha256  321d43772006a25a1d58eea17401ef2a34d388b588c9f7646c34796151ebc8cc \
                            size    1341527
    }

    notes-append        "Please do not forget to install one of Keras backends: py${python.version}-theano or tensorflow."

    livecheck.type      none
}
