From 851a1197a690aaf828517270f2b853599feda27d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 10 Aug 2025 00:38:25 +0100 Subject: [PATCH] gnu: python-prometheus-client: Update to 0.22.1. * gnu/packages/monitoring.scm (python-prometheus-client): Update to 0.22.1. [build-system]: Use pyproject. [arguments] : Enable them. : Skip 4 failing tests. [native-inputs]: Add python-pytest and python-setuptools. Change-Id: I54522f793364ab2614ef8f30c874f3065ca79a7f --- gnu/packages/monitoring.scm | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm index a94e117e623752c9841f52ef38259f3a91ac5e8a..492ea128b65b4784e8c19f88283ee76631e6b2e7 100644 --- a/gnu/packages/monitoring.scm +++ b/gnu/packages/monitoring.scm @@ -470,19 +470,31 @@ and persisting them to disk using the Whisper time-series library.") (define-public python-prometheus-client (package (name "python-prometheus-client") - (version "0.20.0") + (version "0.22.1") (source (origin (method url-fetch) (uri (pypi-uri "prometheus_client" version)) (sha256 - (base32 "12dvlh4k6in87q47f0zqh8nrnnfs0pwrs2xynbf34yhl1g82jxi8")))) - (build-system python-build-system) + (base32 "0a0ds9svcfcc8bspikyfz9w46k8a9qsmk9dwc3mj3kw3wwqi63qr")))) + (build-system pyproject-build-system) (arguments - '(;; No included tests. - #:tests? #f)) - (home-page - "https://github.com/prometheus/client_python") + (list + #:test-flags + #~(list "-k" (string-join + ;; FileNotFoundError: [Errno 2] No such file or directory + (list "not test_push_with_tls_auth_handler" + ;; AssertionError: 17.21 != None + "test_namespace" + ;; AssertionError: 17.21 != None + "test_working" + ;; AssertionError: 0.0 != None + "test_working_584") + " and not ")))) + (native-inputs + (list python-pytest + python-setuptools)) + (home-page "https://github.com/prometheus/client_python") (synopsis "Python client for the Prometheus monitoring system") (description "The @code{prometheus_client} package supports exposing metrics from