From e8c25016718079074d4fe70e6a0ee677f916c331 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Wed, 10 Dec 2025 15:10:42 -0800 Subject: [PATCH] add: pygments-styles (#8231) (#8254) (cherry picked from commit 1be7c61b297cd969af125b52e97bc8e27404d065) Co-authored-by: Gilver --- anda/langs/python/pygment-styles/anda.hcl | 6 +++ .../python-pygments-styles.spec | 46 +++++++++++++++++++ anda/langs/python/pygment-styles/update.rhai | 1 + 3 files changed, 53 insertions(+) create mode 100644 anda/langs/python/pygment-styles/anda.hcl create mode 100644 anda/langs/python/pygment-styles/python-pygments-styles.spec create mode 100644 anda/langs/python/pygment-styles/update.rhai diff --git a/anda/langs/python/pygment-styles/anda.hcl b/anda/langs/python/pygment-styles/anda.hcl new file mode 100644 index 0000000000..624d8db55f --- /dev/null +++ b/anda/langs/python/pygment-styles/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "python-pygments-styles.spec" + } +} diff --git a/anda/langs/python/pygment-styles/python-pygments-styles.spec b/anda/langs/python/pygment-styles/python-pygments-styles.spec new file mode 100644 index 0000000000..c85a868283 --- /dev/null +++ b/anda/langs/python/pygment-styles/python-pygments-styles.spec @@ -0,0 +1,46 @@ +%global pypi_name pygments_styles +%global real_name pygments-styles + +Name: python-%{real_name} +Version: 0.3.0 +Release: 1%{?dist} +Summary: A collection of Pygments styles +License: BSD-3-Clause +URL: https://pygments-styles.org +Source0: %{pypi_source} +BuildRequires: pyproject-rpm-macros +BuildRequires: python3-devel +BuildRequires: python3dist(pip) +BuildRequires: python3dist(setuptools) +BuildArch: noarch +Packager: Gilver E. + +%description +A curated collection of Pygments styles based on VS Code themes. + +%package -n python3-%{real_name} +Summary: %{summary} +Requires: python3dist(pygments) +%{?python_provide:%python_provide python3-%{real_name}} + +%description -n python3-%{real_name} +A curated collection of Pygments styles based on VS Code themes. + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files %{pypi_name} + +%files -n python3-%{real_name} -f %{pyproject_files} +%doc PKG-INFO +%doc README.md +%license LICENSE + +%changelog +* Wed Dec 10 2025 Gilver E. - 0.3.0-1 +- Initial package. diff --git a/anda/langs/python/pygment-styles/update.rhai b/anda/langs/python/pygment-styles/update.rhai new file mode 100644 index 0000000000..67b1c19448 --- /dev/null +++ b/anda/langs/python/pygment-styles/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("pygments-styles"));