From 26bc4b51a808d73c09598035aa94f9c37b273218 Mon Sep 17 00:00:00 2001 From: "Fiona Klute (WIWA)" Date: Mon, 11 Aug 2025 18:18:07 +0200 Subject: [PATCH] package/python-rich: new package Signed-off-by: Fiona Klute (WIWA) Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 1 + package/Config.in | 1 + package/python-rich/Config.in | 9 +++++++++ package/python-rich/python-rich.hash | 5 +++++ package/python-rich/python-rich.mk | 14 ++++++++++++++ 5 files changed, 30 insertions(+) create mode 100644 package/python-rich/Config.in create mode 100644 package/python-rich/python-rich.hash create mode 100644 package/python-rich/python-rich.mk diff --git a/DEVELOPERS b/DEVELOPERS index 50fd6dd119..3b89a7c481 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1125,6 +1125,7 @@ F: package/python-mdurl/ F: package/python-platformdirs/ F: package/python-pyasynchat/ F: package/python-pyasyncore/ +F: package/python-rich/ F: support/testing/tests/package/sample_python_networkmanager_goi.py F: support/testing/tests/package/sample_python_pyroute2.py F: support/testing/tests/package/test_nftables.py diff --git a/package/Config.in b/package/Config.in index 6aadb3481b..f4a2a3bb95 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1371,6 +1371,7 @@ menu "External python modules" source "package/python-requests-toolbelt/Config.in" source "package/python-rfc3987/Config.in" source "package/python-rgbmatrix/Config.in" + source "package/python-rich/Config.in" source "package/python-rpds-py/Config.in" source "package/python-rpi-gpio/Config.in" source "package/python-rpi-ws281x/Config.in" diff --git a/package/python-rich/Config.in b/package/python-rich/Config.in new file mode 100644 index 0000000000..d7f3cdf54a --- /dev/null +++ b/package/python-rich/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_PYTHON_RICH + bool "python-rich" + select BR2_PACKAGE_PYTHON_MARKDOWN_IT_PY # runtime + select BR2_PACKAGE_PYTHON_PYGMENTS # runtime + help + Render rich text, tables, progress bars, syntax + highlighting, markdown and more to the terminal. + + https://github.com/Textualize/rich diff --git a/package/python-rich/python-rich.hash b/package/python-rich/python-rich.hash new file mode 100644 index 0000000000..87c58f42e3 --- /dev/null +++ b/package/python-rich/python-rich.hash @@ -0,0 +1,5 @@ +# md5, sha256 from https://pypi.org/pypi/rich/json +md5 38baf395e7860be314c6c29fcac8637d rich-14.1.0.tar.gz +sha256 e497a48b844b0320d45007cdebfeaeed8db2a4f4bcf49f15e455cfc4af11eaa8 rich-14.1.0.tar.gz +# Locally computed sha256 checksums +sha256 deed7c17a4318158190a3ea239cc879a5a50271cebb98ae7025f48fbe58dca15 LICENSE diff --git a/package/python-rich/python-rich.mk b/package/python-rich/python-rich.mk new file mode 100644 index 0000000000..e6564347a5 --- /dev/null +++ b/package/python-rich/python-rich.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-rich +# +################################################################################ + +PYTHON_RICH_VERSION = 14.1.0 +PYTHON_RICH_SOURCE = rich-$(PYTHON_RICH_VERSION).tar.gz +PYTHON_RICH_SITE = https://files.pythonhosted.org/packages/fe/75/af448d8e52bf1d8fa6a9d089ca6c07ff4453d86c65c145d0a300bb073b9b +PYTHON_RICH_SETUP_TYPE = poetry +PYTHON_RICH_LICENSE = MIT +PYTHON_RICH_LICENSE_FILES = LICENSE + +$(eval $(python-package))