12 buildPythonPackage rec {
15 format = "setuptools";
17 disabled = pythonOlder "3.7";
19 src = fetchFromGitHub {
21 repo = "python-zeroconf";
22 rev = "refs/tags/${version}";
23 hash = "sha256-CUHpTtCQBuuy8E8bjxfhGOIKr9n2Gdhg/RIyv6OWGvI=";
26 propagatedBuildInputs = [
31 # OSError: [Errno 48] Address already in use
32 doCheck = !stdenv.isDarwin;
40 # tests that require network interaction
41 "test_close_multiple_times"
42 "test_launch_and_close"
43 "test_launch_and_close_context_manager"
44 "test_launch_and_close_v4_v6"
45 "test_launch_and_close_v6_only"
46 "test_integration_with_listener_ipv6"
47 # Starting with 0.39.0: AssertionError: assert [('add', '_ht..._tcp.local.')]
48 "test_service_browser_expire_callbacks"
49 ] ++ lib.optionals stdenv.isDarwin [
53 __darwinAllowLocalNetworking = true;
55 pythonImportsCheck = [
61 description = "Python implementation of multicast DNS service discovery";
62 homepage = "https://github.com/jstasiak/python-zeroconf";
63 license = licenses.lgpl21Only;
64 maintainers = with maintainers; [ abbradar ];