15 buildPythonPackage rec {
20 disabled = pythonOlder "3.8";
22 src = fetchFromGitHub {
24 repo = "python-zeroconf";
25 rev = "refs/tags/${version}";
26 hash = "sha256-Jmz9zs//EVdBbEElq6OEfGZiOiMvjV5CJxZOM/lHvok=";
30 substituteInPlace pyproject.toml \
31 --replace-fail "Cython>=3.0.8" "Cython"
42 ] ++ lib.optionals (pythonOlder "3.11") [
53 sed -i '/addopts/d' pyproject.toml
57 # OSError: [Errno 19] No such device
58 "test_close_multiple_times"
59 "test_integration_with_listener_ipv6"
60 "test_launch_and_close"
61 "test_launch_and_close_context_manager"
62 "test_launch_and_close_v4_v6"
65 __darwinAllowLocalNetworking = true;
67 pythonImportsCheck = [
73 description = "Python implementation of multicast DNS service discovery";
74 homepage = "https://github.com/python-zeroconf/python-zeroconf";
75 changelog = "https://github.com/python-zeroconf/python-zeroconf/releases/tag/${version}";
76 license = licenses.lgpl21Only;
77 maintainers = with maintainers; [ abbradar ];