8 python3.pkgs.buildPythonApplication rec {
9 pname = "dmarc-metrics-exporter";
14 src = fetchFromGitHub {
16 repo = "dmarc-metrics-exporter";
18 hash = "sha256-cIsI4TNYuLK0fpUg9lnbl5KSBtzQoT/pTByI9hiy/7o=";
21 pythonRelaxDeps = true;
23 build-system = with python3.pkgs; [
31 dataclasses-serialization
37 ++ uvicorn.optional-dependencies.standard;
39 nativeCheckInputs = with python3.pkgs; [
46 disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
49 "test_prometheus_exporter"
54 "dmarc_metrics_exporter/tests/test_e2e.py"
55 "dmarc_metrics_exporter/tests/test_imap_client.py"
56 "dmarc_metrics_exporter/tests/test_imap_queue.py"
59 pythonImportsCheck = [ "dmarc_metrics_exporter" ];
62 description = "Export Prometheus metrics from DMARC reports";
63 mainProgram = "dmarc-metrics-exporter";
64 homepage = "https://github.com/jgosmann/dmarc-metrics-exporter";
65 changelog = "https://github.com/jgosmann/dmarc-metrics-exporter/blob/v${version}/CHANGELOG.rst";
66 license = lib.licenses.mit;
67 maintainers = with lib.maintainers; [ ma27 ];