diff mbox series

[meta-python] python3-pytest-env: new recipe.

Message ID 20260208001059.1766407-2-t.f.g.geelen@gmail.com
State Under Review
Headers show
Series [meta-python] python3-pytest-env: new recipe. | expand

Commit Message

Tom Geelen Feb. 8, 2026, 12:11 a.m. UTC
pytest plugin that allows you to add environment variables.

Signed-off-by: Tom Geelen <t.f.g.geelen@gmail.com>
---
 .../ptest-packagelists-meta-python.inc        |  1 +
 .../python/python3-pytest-env_1.2.0.bb        | 21 +++++++++++++++++++
 2 files changed, 22 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-pytest-env_1.2.0.bb
diff mbox series

Patch

diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index 15172e7f22..d01483afb4 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -80,6 +80,7 @@  PTESTS_FAST_META_PYTHON = "\
     python3-pyasyncore \
     python3-pyroute2 \
     python3-pyserial \
+    python3-pytest-env \
     python3-pytest-httpx \
     python3-pytest-mock \
     python3-pytest-picked \
diff --git a/meta-python/recipes-devtools/python/python3-pytest-env_1.2.0.bb b/meta-python/recipes-devtools/python/python3-pytest-env_1.2.0.bb
new file mode 100644
index 0000000000..f7ab022894
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pytest-env_1.2.0.bb
@@ -0,0 +1,21 @@ 
+SUMMARY = "pytest plugin that allows you to add environment variables."
+HOMEPAGE = "https://github.com/pytest-dev/pytest-env"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b70ef84b3d8d608b13b0287ed49df651"
+RECIPE_MAINTAINER = "Tom Geelen <t.f.g.geelen@gmail.com>"
+
+DEPENDS = "python3-hatch-vcs-native python3-hatchling-native"
+SRC_URI[sha256sum] = "475e2ebe8626cee01f491f304a74b12137742397d6c784ea4bc258f069232b80"
+
+inherit pypi python_hatchling ptest-python-pytest
+
+PYPI_PACKAGE = "pytest_env"
+UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
+
+RDEPENDS:${PN} = "python3-pytest python3-tomli"
+
+RDEPENDS:${PN}-ptest += " \
+    python3-covdefaults \
+    python3-coverage \
+    python3-pytest-mock \
+"