%global pypi_name plotly Name: python-%{pypi_name} Version: 6.7.0 Release: 3%{?dist} Summary: Open-source interactive data visualization library for Python License: MIT URL: https://plotly.com/python/ Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3-hatchling BuildRequires: python3-narwhals BuildRequires: python3-packaging %global _description %{expand: Plotly is an open-source interactive data visualization library for Python. It provides high-quality publication-ready figures with support for over 30 chart types (statistical, financial, geographic, 3D, and scientific). Plots can be embedded in dashboards, exported to static images, or rendered inline in Jupyter notebooks.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} Requires: python3-narwhals >= 1.15.1 Requires: python3-packaging %description -n python3-%{pypi_name} %_description %prep %autosetup -n %{pypi_name}-%{version} # Fix ambiguous python shebang in vendored png.py (RPM brp-mangle-shebangs rejects) sed -i '1s|^#!/usr/bin/env python$|#!/usr/bin/python3|' _plotly_utils/png.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} _plotly_utils %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE.txt %doc README.md %{_bindir}/plotly_get_chrome # Vendored bits not under the plotly/ namespace %{python3_sitelib}/js/ %{_datadir}/jupyter/labextensions/jupyterlab-plotly/ %changelog * Tue May 05 2026 Morgan Hough - 6.7.0-3 - Add /usr/bin/plotly_get_chrome, vendored js/, and jupyter labextension to %%files (install-tree paths outside the plotly/ namespace) * Tue May 05 2026 Morgan Hough - 6.7.0-2 - Fix ambiguous python shebang in vendored _plotly_utils/png.py * Tue May 05 2026 Morgan Hough - 6.7.0-1 - Initial package (NeuroFedora dep chain: nilearn → plotly)