depot/third_party/nixpkgs/pkgs/development/python-modules/zeroconf/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

69 lines
1.5 KiB
Nix

{
lib,
cython,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
ifaddr,
poetry-core,
pytest-asyncio,
pytest-cov-stub,
pytest-timeout,
pythonOlder,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "zeroconf";
version = "0.135.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jstasiak";
repo = "python-zeroconf";
rev = "refs/tags/${version}";
hash = "sha256-3zUY9zOmC2avR7rO5O22lqqEY5ql612fRutbGl7SYKs=";
};
build-system = [
cython
poetry-core
setuptools
];
dependencies = [ ifaddr ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytest-timeout
pytestCheckHook
];
disabledTests = [
# 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"
];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [
"zeroconf"
"zeroconf.asyncio"
];
meta = with lib; {
description = "Python implementation of multicast DNS service discovery";
homepage = "https://github.com/python-zeroconf/python-zeroconf";
changelog = "https://github.com/python-zeroconf/python-zeroconf/releases/tag/${version}";
license = licenses.lgpl21Only;
maintainers = with maintainers; [ abbradar ];
};
}