# -*- 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_estimator
version             2.4.0
revision            0
platforms           darwin
supported_archs     noarch
license             Apache-2
maintainers         {blair @blair} {jonesc @cjones051073} openmaintainer

description         High-level API that simplifies machine learning.
long_description    TensorFlow Estimator is a high-level TensorFlow API \
                    that greatly simplifies machine learning programming. \
                    Estimators encapsulate training, evaluation, prediction, \
                    and exporting for your model.

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

master_sites        https://files.pythonhosted.org/packages/74/7e/622d9849abf3afb81e482ffc170758742e392ee129ce1540611199a59237/

distname            tensorflow_estimator-${version}-py2.py3-none-any

checksums           rmd160  2bb7ba8fa1bbfd7802c97d9535c00703e1d27a57 \
                    sha256  5b7b7bf2debe19a8794adacc43e8ba6459daa4efaf54d3302623994a359b17f0 \
                    size    462041

livecheck.url       https://pypi.org/project/tensorflow-estimator/
livecheck.type      regex
livecheck.regex     /project/tensorflow-estimator/(\\d+(\\.\\d+)+)/

extract.suffix     .whl
extract.only

python.versions        37 38 39
python.default_version 38

if {${name} ne ${subport}} {
    conflicts   py${python.version}-tensorflow_estimator1

    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
}
