Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Mar 2026 18:21:38 +0000
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 23b9d913ba73 - main - devel/py-pytest-postgresql: Add py-pytest-postgresql 8.0.0
Message-ID:  <69af0fb2.1d6ef.4f0ea7b5@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by sunpoet:

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

commit 23b9d913ba73cf2b5eaa752e85ab14ee032d6524
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-03-09 17:51:51 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-03-09 18:18:10 +0000

    devel/py-pytest-postgresql: Add py-pytest-postgresql 8.0.0
    
    pytest-postgresql is a pytest plugin that enables you to test code relying on a
    running PostgreSQL database. It provides fixtures for managing both the
    PostgreSQL process and the client connections.
---
 devel/Makefile                                     |  1 +
 devel/py-pytest-postgresql/Makefile                | 28 ++++++++++++++++++++++
 devel/py-pytest-postgresql/distinfo                |  3 +++
 .../files/patch-pyproject.toml                     | 11 +++++++++
 devel/py-pytest-postgresql/pkg-descr               |  3 +++
 5 files changed, 46 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index db0ad8d4a5a2..35b1d353bb1b 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5809,6 +5809,7 @@
     SUBDIR += py-pytest-order
     SUBDIR += py-pytest-parallel
     SUBDIR += py-pytest-plus
+    SUBDIR += py-pytest-postgresql
     SUBDIR += py-pytest-pretty
     SUBDIR += py-pytest-profiling
     SUBDIR += py-pytest-pycodestyle
diff --git a/devel/py-pytest-postgresql/Makefile b/devel/py-pytest-postgresql/Makefile
new file mode 100644
index 000000000000..314fac89225e
--- /dev/null
+++ b/devel/py-pytest-postgresql/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	pytest-postgresql
+PORTVERSION=	8.0.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	pytest_postgresql-${PORTVERSION}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Postgresql fixtures and fixture factories for Pytest
+WWW=		https://github.com/dbfixtures/pytest-postgresql
+
+LICENSE=	LGPL3+
+LICENSE_FILE=	${WRKSRC}/COPYING.lesser
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=61.0.0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mirakuru>=2.6.0:devel/py-mirakuru@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}port-for>=0.4:net/py-port-for@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}psycopg>=3.0.0:databases/py-psycopg@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest>=8.2,1:devel/py-pytest@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-pytest-postgresql/distinfo b/devel/py-pytest-postgresql/distinfo
new file mode 100644
index 000000000000..2278f1229398
--- /dev/null
+++ b/devel/py-pytest-postgresql/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1771421402
+SHA256 (pytest_postgresql-8.0.0.tar.gz) = 26cbd44a0adef76cf4a82a3a2263f0e029bc54b5863556a9bd86ca3edfa91cce
+SIZE (pytest_postgresql-8.0.0.tar.gz) = 49737
diff --git a/devel/py-pytest-postgresql/files/patch-pyproject.toml b/devel/py-pytest-postgresql/files/patch-pyproject.toml
new file mode 100644
index 000000000000..6e0544291134
--- /dev/null
+++ b/devel/py-pytest-postgresql/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig	2026-01-23 21:14:12 UTC
++++ pyproject.toml
+@@ -29,7 +29,7 @@ dependencies = [
+ ]
+ dependencies = [
+     "pytest >= 8.2",
+-    "port-for >= 0.7.3",
++    "port-for >= 0.4",
+     "mirakuru >= 2.6.0",
+     "packaging",
+     "psycopg >= 3.0.0"
diff --git a/devel/py-pytest-postgresql/pkg-descr b/devel/py-pytest-postgresql/pkg-descr
new file mode 100644
index 000000000000..cafec7b1250a
--- /dev/null
+++ b/devel/py-pytest-postgresql/pkg-descr
@@ -0,0 +1,3 @@
+pytest-postgresql is a pytest plugin that enables you to test code relying on a
+running PostgreSQL database. It provides fixtures for managing both the
+PostgreSQL process and the client connections.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69af0fb2.1d6ef.4f0ea7b5>