# -*- 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-tensorboard
version             2.21.0
revision            0
supported_archs     noarch
platforms           {darwin any}
license             Apache-2
maintainers         nomaintainer

description         TensorBoard lets you watch Tensors Flow
long_description    {*}${description}

homepage            https://github.com/tensorflow/tensorboard

python.versions     312 313 314

extract.suffix      .whl
extract.only

if {${name} ne ${subport}} {
    master_sites    https://files.pythonhosted.org/packages/37/4b/cd2eec9642781a8f5b2fb9994e3933a7b259ab18e9d49aeede9b5acf6311/
    distname        tensorboard-${version}-py3-none-any

    checksums       rmd160  c513134a574a7c7a041222e6e32f1a03bd4d8aaa \
                    sha256  7279316dcb6bd5bc391d623dea841531299cde1887310e8133bc34a996d32255 \
                    size    5516204


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

    depends_run-append \
        port:py${python.version}-numpy \
        port:py${python.version}-werkzeug

    build {}

    destroot.cmd    pip-${python.branch}
    destroot.target install
    destroot.args   --prefix ${python.prefix} \
        --ignore-installed \
        --no-cache-dir     \
        --no-dependencies  \
        --root ${destroot} \
        ${distpath}/${distfiles}
    destroot.post_args
}
