git: da5362a499ea - main - astro/py-pytest-astropy-header: New port: Pytest plugin to add diagnostic information to header of test output

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 07 Sep 2025 18:29:43 UTC
The branch main has been updated by yuri:

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

commit da5362a499ea98d5b025730f68953010d80a26f9
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-09-07 10:06:43 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-09-07 18:29:38 +0000

    astro/py-pytest-astropy-header: New port: Pytest plugin to add diagnostic information to header of test output
---
 astro/Makefile                           |  1 +
 astro/py-pytest-astropy-header/Makefile  | 26 ++++++++++++++++++++++++++
 astro/py-pytest-astropy-header/distinfo  |  3 +++
 astro/py-pytest-astropy-header/pkg-descr |  5 +++++
 4 files changed, 35 insertions(+)

diff --git a/astro/Makefile b/astro/Makefile
index 4beb8aa1b073..3b67c31befbc 100644
--- a/astro/Makefile
+++ b/astro/Makefile
@@ -101,6 +101,7 @@
     SUBDIR += py-pymeeus
     SUBDIR += py-pymetar
     SUBDIR += py-pysofa
+    SUBDIR += py-pytest-astropy-header
     SUBDIR += py-pywapi
     SUBDIR += py-ro
     SUBDIR += py-sgp4
diff --git a/astro/py-pytest-astropy-header/Makefile b/astro/py-pytest-astropy-header/Makefile
new file mode 100644
index 000000000000..eca1932fc089
--- /dev/null
+++ b/astro/py-pytest-astropy-header/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	pytest-astropy-header
+PORTVERSION=	0.2.2
+CATEGORIES=	astro python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Pytest plugin to add diagnostic information to header of test output
+WWW=		https://github.com/astropy/pytest-astropy-header
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.rst
+
+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}pytest>0:devel/py-pytest@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils autoplist pytest
+
+NO_ARCH=	yes
+
+# tests as of 0.2.2: 19 passed in 8.69s
+
+.include <bsd.port.mk>
diff --git a/astro/py-pytest-astropy-header/distinfo b/astro/py-pytest-astropy-header/distinfo
new file mode 100644
index 000000000000..eef9528d96a7
--- /dev/null
+++ b/astro/py-pytest-astropy-header/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1757239125
+SHA256 (pytest-astropy-header-0.2.2.tar.gz) = 77891101c94b75a8ca305453b879b318ab6001b370df02be2c0b6d1bb322db10
+SIZE (pytest-astropy-header-0.2.2.tar.gz) = 9914
diff --git a/astro/py-pytest-astropy-header/pkg-descr b/astro/py-pytest-astropy-header/pkg-descr
new file mode 100644
index 000000000000..2175c0a54b18
--- /dev/null
+++ b/astro/py-pytest-astropy-header/pkg-descr
@@ -0,0 +1,5 @@
+The pytest-astropy-header package provides a way to include information about
+the system, Python installation, and select dependencies in the header of the
+output when running pytest. It can be used with packages that are not
+affiliated with the Astropy project, but is optimized for use with
+Astropy-related projects.