# -*- 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-tensorflow-hub
version             0.11.0
platforms           darwin
supported_archs     noarch
license             Apache-2
maintainers         nomaintainer

description         TensorFlow Hub is a library to foster the \
                    publication discovery and consumption of reusable \
                    parts of machine learning models.

long_description    {*}${description}

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

master_sites        https://files.pythonhosted.org/packages/f4/1f/ca72fa5400954903aa6f3354142cd66374604384fb13429af9e41b12120d/
distname            tensorflow_hub-0.11.0-py2.py3-none-any
extract.suffix      .whl

checksums           rmd160  23470b87ca6c737f61edecd65f226b833eecd5da \
                    sha256  19399a8abef10682b4f739a5aa78b43da3937df17f5d2afb0547945798787674 \
                    size    107234

extract.only

python.versions     37 38 39

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

    build {
    }

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

    livecheck.type  none
}
