guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit a090b6d1630d792fb198b5d5d190fd05f0a2d65d
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Aug 10 00:38:25 2025 +0100

    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] <tests?>: Enable them.
      <test-flags>: 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 5f6d661587..21bf421830 100644
--- a/gnu/packages/monitoring.scm
+++ b/gnu/packages/monitoring.scm
@@ -535,19 +535,31 @@ demand.")
 (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

Reply via email to