From bb5dfc426cfa64797993b26dd429cd978d3e2583 Mon Sep 17 00:00:00 2001 From: Tom Geelen Date: Sun, 8 Feb 2026 01:11:00 +0100 Subject: [PATCH] python3-pytest-env: new recipe. pytest plugin that allows you to add environment variables. Signed-off-by: Tom Geelen Signed-off-by: Khem Raj --- .../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 --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc index 83e4490533..6dd53e8a8a 100644 --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc @@ -81,6 +81,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 " + +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 \ +"