python310Packages.zeroconf: 0.54.0 -> 0.56.0

https://github.com/python-zeroconf/python-zeroconf/releases/tag/0.56.0

Build optional cython implementation, reenable tests on darwin and prune
disabled tests.
This commit is contained in:
Martin Weinelt 2023-04-09 12:45:41 +02:00
parent f56e0dc6b1
commit 2409362d04
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -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 ];
};