6 python3.pkgs.buildPythonApplication rec {
7 pname = "dmarc-metrics-exporter";
10 disabled = python3.pythonOlder "3.8";
14 src = fetchFromGitHub {
16 repo = "dmarc-metrics-exporter";
17 rev = "refs/tags/v${version}";
18 hash = "sha256-pT2GGoNPCHBZZbbBE93cJjgogBNcdpvLmrVakNMu6tY=";
21 pythonRelaxDeps = true;
23 nativeBuildInputs = with python3.pkgs; [
27 propagatedBuildInputs = with python3.pkgs; [
29 dataclasses-serialization
35 ++ uvicorn.optional-dependencies.standard;
37 nativeCheckInputs = with python3.pkgs; [
46 "dmarc_metrics_exporter/tests/test_e2e.py"
47 "dmarc_metrics_exporter/tests/test_imap_client.py"
48 "dmarc_metrics_exporter/tests/test_imap_queue.py"
51 pythonImportsCheck = [ "dmarc_metrics_exporter" ];
54 description = "Export Prometheus metrics from DMARC reports";
55 mainProgram = "dmarc-metrics-exporter";
56 homepage = "https://github.com/jgosmann/dmarc-metrics-exporter";
57 changelog = "https://github.com/jgosmann/dmarc-metrics-exporter/blob/v${version}/CHANGELOG.rst";
58 license = lib.licenses.mit;
59 maintainers = with lib.maintainers; [ ma27 ];