git: d96b3431f976 - main - devel/py-pytest-rich: New port: Leverage rich for richer test session output

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 20 Sep 2026 08:01:57 UTC
The branch main has been updated by yuri:

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

commit d96b3431f97651047e7e1440601c2c9a85ca6c26
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-09-20 04:48:43 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-09-20 08:01:53 +0000

    devel/py-pytest-rich: New port: Leverage rich for richer test session output
    
    required by misc/py-transformers
    
    PR:             298597
    Approved by:    Baptiste Daroussin <bapt@FreeBSD.org> (on behalf of portmgr@)
---
 devel/Makefile                 |  1 +
 devel/py-pytest-rich/Makefile  | 27 +++++++++++++++++++++++++++
 devel/py-pytest-rich/distinfo  |  3 +++
 devel/py-pytest-rich/pkg-descr |  2 ++
 4 files changed, 33 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 192ea7c907c5..840ff18fc86f 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -6018,6 +6018,7 @@
     SUBDIR += py-pytest-repeat
     SUBDIR += py-pytest-rerunfailures
     SUBDIR += py-pytest-retry
+    SUBDIR += py-pytest-rich
     SUBDIR += py-pytest-ruff
     SUBDIR += py-pytest-run-parallel
     SUBDIR += py-pytest-services
diff --git a/devel/py-pytest-rich/Makefile b/devel/py-pytest-rich/Makefile
new file mode 100644
index 000000000000..54e0c7270df0
--- /dev/null
+++ b/devel/py-pytest-rich/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	pytest-rich
+DISTVERSION=	0.2.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	pytest_rich-${DISTVERSION}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Leverage rich for richer test session output
+WWW=		https://github.com/nicoddemus/pytest-rich
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}attrs>0:devel/py-attrs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest>=7.0:devel/py-pytest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}rich>0:textproc/py-rich@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517 pytest
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-pytest-rich/distinfo b/devel/py-pytest-rich/distinfo
new file mode 100644
index 000000000000..1b4aae7047e3
--- /dev/null
+++ b/devel/py-pytest-rich/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1789598644
+SHA256 (pytest_rich-0.2.0.tar.gz) = a5cf6c83497de65788c8a609f616fafedac50295c48f2eb3184bc08b67a9893e
+SIZE (pytest_rich-0.2.0.tar.gz) = 45835
diff --git a/devel/py-pytest-rich/pkg-descr b/devel/py-pytest-rich/pkg-descr
new file mode 100644
index 000000000000..3a52d0d72639
--- /dev/null
+++ b/devel/py-pytest-rich/pkg-descr
@@ -0,0 +1,2 @@
+pytest-rich is a pytest plugin that uses Rich to provide richer test
+session output.