# -*- 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.6.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  a3de3e90b1c38f6f7d4c120ea7c1b523368aae27 \
                    sha256  b897f15f3b02028d69f755f236be890ba950d0a42d7dfc619b44e2d8cea8748c \
                    size    7027956

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

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