mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
5c902b9a61
Diff: https://github.com/jstasiak/python-zeroconf/compare/refs/tags/0.93.0...0.93.1 Changelog: https://github.com/python-zeroconf/python-zeroconf/releases/tag/0.93.1
76 lines
1.5 KiB
Nix
76 lines
1.5 KiB
Nix
{ lib
|
|
, stdenv
|
|
, cython
|
|
, async-timeout
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, ifaddr
|
|
, poetry-core
|
|
, pytest-asyncio
|
|
, pytest-timeout
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zeroconf";
|
|
version = "0.93.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jstasiak";
|
|
repo = "python-zeroconf";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-ixNh/pCt6e8x9n0wg7GBTwhm3PkmHQzd4CGmacWcAfY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
poetry-core
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
ifaddr
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
|
async-timeout
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytest-timeout
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
sed -i '/addopts/d' pyproject.toml
|
|
'';
|
|
|
|
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; {
|
|
changelog = "https://github.com/python-zeroconf/python-zeroconf/releases/tag/${version}";
|
|
description = "Python implementation of multicast DNS service discovery";
|
|
homepage = "https://github.com/python-zeroconf/python-zeroconf";
|
|
license = licenses.lgpl21Only;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|