From 7943599a1439bad9a459cfa42dd5e82d68270493 Mon Sep 17 00:00:00 2001 From: Harinn Date: Sun, 10 May 2026 19:45:40 +0700 Subject: [PATCH 1/2] python3Packages.prometheus-flask-exporter: skip test that breaks under prometheus-client 0.24 --- .../python-modules/prometheus-flask-exporter/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/prometheus-flask-exporter/default.nix b/pkgs/development/python-modules/prometheus-flask-exporter/default.nix index 32a3ed949336..fb9fc96a4ba6 100644 --- a/pkgs/development/python-modules/prometheus-flask-exporter/default.nix +++ b/pkgs/development/python-modules/prometheus-flask-exporter/default.nix @@ -34,6 +34,8 @@ buildPythonPackage rec { disabledTests = [ # AssertionError "test_group_by_lambda_is_not_supported" + # prometheus-client 0.24 moved CONTENT_TYPE_LATEST to version=1.0.0 while choose_encoder still defaults to 0.0.4 + "test_default_format" ]; meta = { From 8067ed5daa25e11373226615def4efc06eeb6129 Mon Sep 17 00:00:00 2001 From: Harinn Date: Sun, 10 May 2026 19:45:52 +0700 Subject: [PATCH 2/2] python3Packages.prometheus-flask-exporter: enable __darwinAllowLocalNetworking --- .../python-modules/prometheus-flask-exporter/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/prometheus-flask-exporter/default.nix b/pkgs/development/python-modules/prometheus-flask-exporter/default.nix index fb9fc96a4ba6..1d3e170eedc4 100644 --- a/pkgs/development/python-modules/prometheus-flask-exporter/default.nix +++ b/pkgs/development/python-modules/prometheus-flask-exporter/default.nix @@ -27,6 +27,8 @@ buildPythonPackage rec { prometheus-client ]; + __darwinAllowLocalNetworking = true; + nativeCheckInputs = [ pytestCheckHook ]; enabledTestPaths = [ "tests/" ];