diff --git a/pkgs/servers/monitoring/prometheus/dmarc-metrics-exporter/default.nix b/pkgs/servers/monitoring/prometheus/dmarc-metrics-exporter/default.nix index 169e14f75753..7b6ef72c7d20 100644 --- a/pkgs/servers/monitoring/prometheus/dmarc-metrics-exporter/default.nix +++ b/pkgs/servers/monitoring/prometheus/dmarc-metrics-exporter/default.nix @@ -1,14 +1,14 @@ -{ lib -, python3 -, fetchFromGitHub +{ + lib, + stdenv, + python3, + fetchFromGitHub, }: python3.pkgs.buildPythonApplication rec { pname = "dmarc-metrics-exporter"; version = "1.1.0"; - disabled = python3.pythonOlder "3.8"; - pyproject = true; src = fetchFromGitHub { @@ -20,19 +20,21 @@ python3.pkgs.buildPythonApplication rec { pythonRelaxDeps = true; - nativeBuildInputs = with python3.pkgs; [ + build-system = with python3.pkgs; [ poetry-core ]; - propagatedBuildInputs = with python3.pkgs; [ - bite-parser - dataclasses-serialization - prometheus-client - structlog - uvicorn - xsdata - ] - ++ uvicorn.optional-dependencies.standard; + dependencies = + with python3.pkgs; + [ + bite-parser + dataclasses-serialization + prometheus-client + structlog + uvicorn + xsdata + ] + ++ uvicorn.optional-dependencies.standard; nativeCheckInputs = with python3.pkgs; [ aiohttp @@ -41,6 +43,12 @@ python3.pkgs.buildPythonApplication rec { requests ]; + disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ + # flaky tests + "test_build_info" + "test_prometheus_exporter" + ]; + disabledTestPaths = [ # require networking "dmarc_metrics_exporter/tests/test_e2e.py"