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:
parent
f56e0dc6b1
commit
2409362d04
@ -1,11 +1,13 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
|
, cython
|
||||||
, async-timeout
|
, async-timeout
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, ifaddr
|
, ifaddr
|
||||||
, poetry-core
|
, poetry-core
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
|
, pytest-timeout
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, setuptools
|
, setuptools
|
||||||
@ -13,7 +15,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "zeroconf";
|
pname = "zeroconf";
|
||||||
version = "0.54.0";
|
version = "0.56.0";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
@ -22,24 +24,24 @@ buildPythonPackage rec {
|
|||||||
owner = "jstasiak";
|
owner = "jstasiak";
|
||||||
repo = "python-zeroconf";
|
repo = "python-zeroconf";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-rbolWawEbjF46Im/mqyOHpvk+4UojgFIaFoG4jbPwYY=";
|
hash = "sha256-EglL06umgKjbA7mWuOfss7xemp53XJNOs3eJR5VNWxk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
cython
|
||||||
poetry-core
|
poetry-core
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
async-timeout
|
|
||||||
ifaddr
|
ifaddr
|
||||||
|
] ++ lib.optionals (pythonOlder "3.11") [
|
||||||
|
async-timeout
|
||||||
];
|
];
|
||||||
|
|
||||||
# OSError: [Errno 48] Address already in use
|
|
||||||
doCheck = !stdenv.isDarwin;
|
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
|
pytest-timeout
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -48,17 +50,12 @@ buildPythonPackage rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# tests that require network interaction
|
# OSError: [Errno 19] No such device
|
||||||
"test_close_multiple_times"
|
"test_close_multiple_times"
|
||||||
|
"test_integration_with_listener_ipv6"
|
||||||
"test_launch_and_close"
|
"test_launch_and_close"
|
||||||
"test_launch_and_close_context_manager"
|
"test_launch_and_close_context_manager"
|
||||||
"test_launch_and_close_v4_v6"
|
"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;
|
__darwinAllowLocalNetworking = true;
|
||||||
@ -71,7 +68,7 @@ buildPythonPackage rec {
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
changelog = "https://github.com/python-zeroconf/python-zeroconf/releases/tag/${version}";
|
changelog = "https://github.com/python-zeroconf/python-zeroconf/releases/tag/${version}";
|
||||||
description = "Python implementation of multicast DNS service discovery";
|
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;
|
license = licenses.lgpl21Only;
|
||||||
maintainers = with maintainers; [ abbradar ];
|
maintainers = with maintainers; [ abbradar ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user