git: 1a3305277b87 - main - graphics/py-rich-pixels: Add new port

From: Nicola Vitale <nivit_at_FreeBSD.org>
Date: Thu, 08 Aug 2024 15:28:32 UTC
The branch main has been updated by nivit:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1a3305277b87258caad20fa4fcc67844d8f42722

commit 1a3305277b87258caad20fa4fcc67844d8f42722
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2024-08-08 15:25:08 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2024-08-08 15:27:28 +0000

    graphics/py-rich-pixels: Add new port
    
    Rich-compatible library for writing pixel images and other colourful grids to
    the terminal.
    
    https://pypi.org/project/rich-pixels/
---
 graphics/Makefile                 |  1 +
 graphics/py-rich-pixels/Makefile  | 26 ++++++++++++++++++++++++++
 graphics/py-rich-pixels/distinfo  |  3 +++
 graphics/py-rich-pixels/pkg-descr |  2 ++
 4 files changed, 32 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index 709186eaf3bf..56658a317ded 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -991,6 +991,7 @@
     SUBDIR += py-rasterio
     SUBDIR += py-rasterstats
     SUBDIR += py-rawkit
+    SUBDIR += py-rich-pixels
     SUBDIR += py-s2
     SUBDIR += py-scikit-image
     SUBDIR += py-seqdiag
diff --git a/graphics/py-rich-pixels/Makefile b/graphics/py-rich-pixels/Makefile
new file mode 100644
index 000000000000..9f8e55e94f4e
--- /dev/null
+++ b/graphics/py-rich-pixels/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	rich-pixels
+DISTVERSION=	3.0.1
+CATEGORIES=	graphics python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/}-${DISTVERSION}
+
+MAINTAINER=	nivit@FreeBSD.org
+COMMENT=	Python library for writing pixel images and ASCII art to the terminal
+WWW=		https://pypi.org/project/rich-pixels/
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>=1.25:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}markdown-it-py>=3.0.0:textproc/py-markdown-it-py@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mdurl>=0.1.2:textproc/py-mdurl@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pillow>=10.2.0:graphics/py-pillow@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pygments>=2.17.2:textproc/py-pygments@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}rich>=13.7.0:textproc/py-rich@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.9.0:devel/py-typing-extensions@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+.include <bsd.port.mk>
diff --git a/graphics/py-rich-pixels/distinfo b/graphics/py-rich-pixels/distinfo
new file mode 100644
index 000000000000..5af64fd3d842
--- /dev/null
+++ b/graphics/py-rich-pixels/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1723122676
+SHA256 (rich_pixels-3.0.1.tar.gz) = 4a81977d45437ce5009cdcaf70af80256c3bdfab870e87ab802c577ba4133235
+SIZE (rich_pixels-3.0.1.tar.gz) = 24631
diff --git a/graphics/py-rich-pixels/pkg-descr b/graphics/py-rich-pixels/pkg-descr
new file mode 100644
index 000000000000..90574fbae920
--- /dev/null
+++ b/graphics/py-rich-pixels/pkg-descr
@@ -0,0 +1,2 @@
+Rich-compatible library for writing pixel images and other colourful grids to
+the terminal.