summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-python/zeroconf/Manifest1
-rw-r--r--dev-python/zeroconf/zeroconf-0.121.0.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-python/zeroconf/Manifest b/dev-python/zeroconf/Manifest
index f6a6d34b165f..5a4a4a3248ee 100644
--- a/dev-python/zeroconf/Manifest
+++ b/dev-python/zeroconf/Manifest
@@ -1,2 +1,3 @@
DIST zeroconf-0.119.0.tar.gz 156999 BLAKE2B d8b8f65d6365dad2e58a04f5bf7ec46a9cce45d27a4edcd1d1d1e0d3b38ae0e0b5d84e92b5255c59059367627c918446af6638365c6ea235a989f9af34172db4 SHA512 dcc5824e8f53e0108e5b2072f77897c5eefa7919f8a760feb9635dd970835c3445f06ecd9f556a8fae09e6e6538533810a99e6b4fda2bc9072072c093df87722
DIST zeroconf-0.120.0.tar.gz 157789 BLAKE2B 87971aa98c9c9401277059baee0f6a615c3e73f3146eda19e3a139f4dc8af678627ed0a14636157bb7c48739e8526cd31e6d94fa8438ad8d783949cc3fd64284 SHA512 b010415c733a55f4dca828f18eea96ba95e00e3124d0fdea129d155922ece90cdeb98386eb54a6616770130fe8aaee45ed0ecf3210c553442bd6b91537ad4313
+DIST zeroconf-0.121.0.tar.gz 158293 BLAKE2B fc0f2a2a2ac5df656d96048f350eb5d51e5ee6c347d73a1d3baa23a85f222e034d3800b6b9b15775b5da7c6e1c40bf2c42df70e9454716ef5bdc04c2b8791d39 SHA512 1ab2816f8d492f1b11a7ebc7d024ddf81db84397bad897e3fff539552a50b7fdcacf2d1df865dd212bf39245bd4ec5a5371971b4fc57b75f46879563e5fc5c0f
diff --git a/dev-python/zeroconf/zeroconf-0.121.0.ebuild b/dev-python/zeroconf/zeroconf-0.121.0.ebuild
new file mode 100644
index 000000000000..b3ff07347a6d
--- /dev/null
+++ b/dev-python/zeroconf/zeroconf-0.121.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi compatible)"
+HOMEPAGE="
+ https://github.com/python-zeroconf/python-zeroconf/
+ https://pypi.org/project/zeroconf/
+"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ >=dev-python/ifaddr-0.1.7[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ >=dev-python/async-timeout-3.0.0[${PYTHON_USEDEP}]
+ ' 3.10)
+"
+# the build system uses custom build script that uses distutils to build
+# C extensions, sigh
+BDEPEND="
+ >=dev-python/cython-3[${PYTHON_USEDEP}]
+ >=dev-python/setuptools-65.6.3[${PYTHON_USEDEP}]
+ test? (
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+export REQUIRE_CYTHON=1
+
+python_test() {
+ local -x SKIP_IPV6=1
+ local EPYTEST_DESELECT=(
+ # network
+ tests/test_core.py::Framework::test_close_multiple_times
+ tests/test_core.py::Framework::test_launch_and_close
+ tests/test_core.py::Framework::test_launch_and_close_context_manager
+
+ # fragile to timeouts (?)
+ tests/services/test_browser.py::test_service_browser_expire_callbacks
+ tests/utils/test_asyncio.py::test_run_coro_with_timeout
+ )
+
+ epytest -o addopts=
+}