# -*- 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-plotly
version             6.5.0
revision            0

categories-append   graphics
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {nist.gov:joe.fowler @joefowler} openmaintainer

description         Interactive graphing library for Python.
long_description \
    Plotly's Python graphing library makes interactive, publication-quality graphs. Examples of how to \
    make line plots, scatter plots, area charts, bar charts, error bars, box plots, histograms, \
    heatmaps, subplots, multiple-axes, polar charts, and bubble charts.

homepage            https://plotly.com/python/

checksums           rmd160  326863410cef3e6b4d1d1efe4bba5acb15626483 \
                    sha256  d5d38224883fd38c1409bef7d6a8dc32b74348d39313f3c52ca998b8e447f5c8 \
                    size    7013624

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    patchfiles      patch-pyproject.toml.diff

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

    depends_lib-append \
        port:py${python.version}-matplotlib \
        port:py${python.version}-jupyterlab \
        port:py${python.version}-tenacity
}
