# -*- 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-torchmetrics
version             1.9.0
revision            0

categories-append   science
platforms           {darwin any}
supported_archs     noarch
license             Apache-2
maintainers         {pguyot @pguyot} openmaintainer

description         Machine learning metrics for distributed, scalable \
                    PyTorch applications

long_description    TorchMetrics is a collection of 100+ PyTorch metrics \
                    implementations and an easy-to-use API to create \
                    custom metrics.

homepage            https://github.com/Lightning-AI/torchmetrics

checksums           rmd160  8b46650d0a2276114fab9efd1010fef9ca19c538 \
                    sha256  a488609948600df52d3db4fcdab02e62aab2a85ef34da67037dc3e65b8512faa \
                    size    581765

python.versions     313 314

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-lightning-utilities \
                    port:py${python.version}-numpy \
                    port:py${python.version}-packaging \
                    port:py${python.version}-pytorch \
                    port:py${python.version}-requests
}
