mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 12:34:15 +00:00
dmarc-metrics-exporter: disable flaky tests (#340031)
This commit is contained in:
commit
43e9221a7a
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user