Unverified Commit 43e9221a authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

dmarc-metrics-exporter: disable flaky tests (#340031)

parents f7e4fc6e f13dd1c4
Loading
Loading
Loading
Loading
+23 −15
Original line number Diff line number Diff line
{ 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,11 +20,13 @@ python3.pkgs.buildPythonApplication rec {

  pythonRelaxDeps = true;

  nativeBuildInputs = with python3.pkgs; [
  build-system = with python3.pkgs; [
    poetry-core
  ];

  propagatedBuildInputs = with python3.pkgs; [
  dependencies =
    with python3.pkgs;
    [
      bite-parser
      dataclasses-serialization
      prometheus-client
@@ -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"