From 082cd19eb01dc53e42ef50bff1eff433b725c4cd Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 25 Jun 2025 18:07:41 +0200 Subject: [PATCH] pretalx.plugins.openmetrics: init at unstable-2025-05-25 OpenMetrics instrumentation for Pretalx. --- .../pr/pretalx/plugins/openmetrics.nix | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/pr/pretalx/plugins/openmetrics.nix diff --git a/pkgs/by-name/pr/pretalx/plugins/openmetrics.nix b/pkgs/by-name/pr/pretalx/plugins/openmetrics.nix new file mode 100644 index 000000000000..ebf021068bd1 --- /dev/null +++ b/pkgs/by-name/pr/pretalx/plugins/openmetrics.nix @@ -0,0 +1,40 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + unstableGitUpdater, +}: + +buildPythonPackage { + pname = "pretalx-openmetrics"; + version = "unstable-2025-05-25"; + pyproject = true; + + src = fetchFromGitHub { + owner = "why2025-datenzone"; + repo = "pretalx-openmetrics"; + rev = "1121a5d430c403bc9aedb7ae8b1aa81219c8a58f"; + hash = "sha256-reQA61JFZsYWE/CAL28Oe60CmGANt0phXLzz9YGtDYQ="; + }; + + build-system = [ + setuptools + ]; + + doCheck = false; # no tests + + pythonImportsCheck = [ + "pretalx_openmetrics" + ]; + + # no tagged release yet + passthru.updateScript = unstableGitUpdater { }; + + meta = { + description = "OpenMetrics instrumentation plugin"; + homepage = "https://github.com/why2025-datenzone/pretalx-openmetrics"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ hexa ]; + }; +}