From f81663034510cc01e8d88d91b897ac4da5765fe9 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 19 Oct 2025 15:17:21 +0200 Subject: [PATCH] python3Packages.aioesphomeapi: disable tests on darwin Due to the lack of network sandboxing on darwin parallel builds of this package, e.g. during nixpkgs-review, leads to conflicting socket binds, which makes one of the packages fail. This issues stretches over multiple files, so that it is tedious to disasble these tests selectivly. --- pkgs/development/python-modules/aioesphomeapi/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/aioesphomeapi/default.nix b/pkgs/development/python-modules/aioesphomeapi/default.nix index c731241cdba1..c23132d65d2e 100644 --- a/pkgs/development/python-modules/aioesphomeapi/default.nix +++ b/pkgs/development/python-modules/aioesphomeapi/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, @@ -59,6 +60,10 @@ buildPythonPackage rec { pytestCheckHook ]; + # Lack of network sandboxing leads to conflicting listeners when testing + # this package e.g. in nixpkgs-review on the two suppoted python package sets. + doCheck = !stdenv.hostPlatform.isDarwin; + disabledTestPaths = [ # benchmarking requires pytest-codespeed "tests/benchmarks"