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

This commit is contained in:
Gaétan Lepage 2024-09-07 08:53:56 +02:00 committed by GitHub
commit 43e9221a7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"