From 6b4c745a8bb9a72ca94edaff8f0389d3c3a3dd5c Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Thu, 2 Jan 2025 17:03:55 -0800 Subject: [PATCH] python312Packages.prometheus-client: ignore tests that fail in darwin sandbox --- .../python-modules/prometheus-client/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/prometheus-client/default.nix b/pkgs/development/python-modules/prometheus-client/default.nix index 3c465a430a29..757794a9d05a 100644 --- a/pkgs/development/python-modules/prometheus-client/default.nix +++ b/pkgs/development/python-modules/prometheus-client/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, setuptools, @@ -32,6 +33,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "prometheus_client" ]; + disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ + # fails in darwin sandbox: Operation not permitted + "test_instance_ip_grouping_key" + ]; + meta = with lib; { description = "Prometheus instrumentation library for Python applications"; homepage = "https://github.com/prometheus/client_python";