summaryrefslogtreecommitdiff
path: root/dev-python/aiohappyeyeballs
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-09-05 08:13:23 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-09-05 08:13:23 +0000
commit3ceeeb71476e4e7c29c37bbd1a2b3a97e34761e2 (patch)
treecb83708f1390fccc0f8521b61b63a2d9ea7bd752 /dev-python/aiohappyeyeballs
parent5ce2273fa2607278dbc7825cd7f518b2f2c8561a (diff)
downloadbaldeagleos-repo-3ceeeb71476e4e7c29c37bbd1a2b3a97e34761e2.tar.gz
baldeagleos-repo-3ceeeb71476e4e7c29c37bbd1a2b3a97e34761e2.tar.xz
baldeagleos-repo-3ceeeb71476e4e7c29c37bbd1a2b3a97e34761e2.zip
Adding metadata
Diffstat (limited to 'dev-python/aiohappyeyeballs')
-rw-r--r--dev-python/aiohappyeyeballs/aiohappyeyeballs-2.6.1.ebuild14
-rw-r--r--dev-python/aiohappyeyeballs/files/aiohappyeyeballs-2.6.1-pytest-asyncio-1.patch30
2 files changed, 38 insertions, 6 deletions
diff --git a/dev-python/aiohappyeyeballs/aiohappyeyeballs-2.6.1.ebuild b/dev-python/aiohappyeyeballs/aiohappyeyeballs-2.6.1.ebuild
index ec29f76b2980..24171864d518 100644
--- a/dev-python/aiohappyeyeballs/aiohappyeyeballs-2.6.1.ebuild
+++ b/dev-python/aiohappyeyeballs/aiohappyeyeballs-2.6.1.ebuild
@@ -20,18 +20,20 @@ SRC_URI="
LICENSE="PSF-2"
SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
BDEPEND="
>=dev-python/poetry-core-2.0.0[${PYTHON_USEDEP}]
- test? (
- >=dev-python/pytest-asyncio-0.23.2[${PYTHON_USEDEP}]
- )
"
+EPYTEST_PLUGINS=( pytest-asyncio )
distutils_enable_tests pytest
+PATCHES=(
+ # https://github.com/aio-libs/aiohappyeyeballs/pull/181
+ "${FILESDIR}/${P}-pytest-asyncio-1.patch"
+)
+
python_test() {
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest -p asyncio -o addopts=
+ epytest -o addopts=
}
diff --git a/dev-python/aiohappyeyeballs/files/aiohappyeyeballs-2.6.1-pytest-asyncio-1.patch b/dev-python/aiohappyeyeballs/files/aiohappyeyeballs-2.6.1-pytest-asyncio-1.patch
new file mode 100644
index 000000000000..d5750359157a
--- /dev/null
+++ b/dev-python/aiohappyeyeballs/files/aiohappyeyeballs-2.6.1-pytest-asyncio-1.patch
@@ -0,0 +1,30 @@
+From 5f94f4bdc4f7b4b533d6517308a3d33a1a64e3cc Mon Sep 17 00:00:00 2001
+From: "J. Nick Koston" <nick@home-assistant.io>
+Date: Sun, 24 Aug 2025 01:18:33 -0500
+Subject: [PATCH] chore: updates for pytest-asyncio
+
+---
+ tests/conftest.py | 9 ++++++---
+ 1 file changed, 6 insertions(+), 3 deletions(-)
+
+diff --git a/tests/conftest.py b/tests/conftest.py
+index 6db53d2..9f7a4cb 100644
+--- a/tests/conftest.py
++++ b/tests/conftest.py
+@@ -41,10 +41,13 @@ def long_repr_strings() -> Generator[None, None, None]:
+
+
+ @pytest.fixture(autouse=True)
+-def verify_no_lingering_tasks(
+- event_loop: asyncio.AbstractEventLoop,
+-) -> Generator[None, None, None]:
++def verify_no_lingering_tasks() -> Generator[None, None, None]:
+ """Verify that all tasks are cleaned up."""
++ try:
++ event_loop = asyncio.get_event_loop()
++ except RuntimeError:
++ yield
++ return
+ tasks_before = asyncio.all_tasks(event_loop)
+ yield
+