diff --git a/pkgs/development/python-modules/zeroconf/default.nix b/pkgs/development/python-modules/zeroconf/default.nix index accd4be9da12..05a20e62693a 100644 --- a/pkgs/development/python-modules/zeroconf/default.nix +++ b/pkgs/development/python-modules/zeroconf/default.nix @@ -1,11 +1,13 @@ { lib , stdenv +, cython , async-timeout , buildPythonPackage , fetchFromGitHub , ifaddr , poetry-core , pytest-asyncio +, pytest-timeout , pythonOlder , pytestCheckHook , setuptools @@ -13,7 +15,7 @@ buildPythonPackage rec { pname = "zeroconf"; - version = "0.54.0"; + version = "0.56.0"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -22,24 +24,24 @@ buildPythonPackage rec { owner = "jstasiak"; repo = "python-zeroconf"; rev = "refs/tags/${version}"; - hash = "sha256-rbolWawEbjF46Im/mqyOHpvk+4UojgFIaFoG4jbPwYY="; + hash = "sha256-EglL06umgKjbA7mWuOfss7xemp53XJNOs3eJR5VNWxk="; }; nativeBuildInputs = [ + cython poetry-core setuptools ]; propagatedBuildInputs = [ - async-timeout ifaddr + ] ++ lib.optionals (pythonOlder "3.11") [ + async-timeout ]; - # OSError: [Errno 48] Address already in use - doCheck = !stdenv.isDarwin; - nativeCheckInputs = [ pytest-asyncio + pytest-timeout pytestCheckHook ]; @@ -48,17 +50,12 @@ buildPythonPackage rec { ''; disabledTests = [ - # tests that require network interaction + # OSError: [Errno 19] No such device "test_close_multiple_times" + "test_integration_with_listener_ipv6" "test_launch_and_close" "test_launch_and_close_context_manager" "test_launch_and_close_v4_v6" - "test_launch_and_close_v6_only" - "test_integration_with_listener_ipv6" - # Starting with 0.39.0: AssertionError: assert [('add', '_ht..._tcp.local.')] - "test_service_browser_expire_callbacks" - ] ++ lib.optionals stdenv.isDarwin [ - "test_lots_of_names" ]; __darwinAllowLocalNetworking = true; @@ -71,7 +68,7 @@ buildPythonPackage rec { meta = with lib; { changelog = "https://github.com/python-zeroconf/python-zeroconf/releases/tag/${version}"; description = "Python implementation of multicast DNS service discovery"; - homepage = "https://github.com/jstasiak/python-zeroconf"; + homepage = "https://github.com/python-zeroconf/python-zeroconf"; license = licenses.lgpl21Only; maintainers = with maintainers; [ abbradar ]; };