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

commit 87eb0c24a796470f1941227514daf59d012d3b92
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Sep 21 22:50:10 2025 +0200

    gnu: python-grpcio: Disable tests.
    
    * gnu/packages/rpc.scm (python-grpcio)
    [source]<snippet>: Improve style, importing srfi-26 in <modules>.
    [arguments]<#:tests?>: Disable them.
    [native-inputs]: Replace python-cython by python-cython-0, remove
    python-wheel.
    [description]: Improve style.
    
    Change-Id: Ifbf801ee9e54b90cefab17af3cf07f5a11992a46
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/rpc.scm | 28 ++++++++++++----------------
 1 file changed, 12 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/rpc.scm b/gnu/packages/rpc.scm
index 0bb28b1670..e75d97b120 100644
--- a/gnu/packages/rpc.scm
+++ b/gnu/packages/rpc.scm
@@ -6,6 +6,7 @@
 ;;; Copyright © 2021 Greg Hogan <[email protected]>
 ;;; Copyright © 2021 Tobias Geerinckx-Rice <[email protected]>
 ;;; Copyright © 2022, 2024 Maxim Cournoyer <[email protected]>
+;;; Copyright © 2025 Nicolas Graves <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -169,7 +170,7 @@ type information of gRPC.")
        (uri (pypi-uri "grpcio" version))
        (sha256
         (base32 "1nsgm8q4yahzdab4m3irffdw9zklq4kb7f8hki1ayfgw54ysim55"))
-       (modules '((guix build utils) (ice-9 ftw)))
+       (modules '((guix build utils) (ice-9 ftw) (srfi srfi-26)))
        (snippet
         '(begin
            ;; Delete this generated file.
@@ -178,16 +179,14 @@ type information of gRPC.")
              ;; Delete the bundled source code of libraries that are possible
              ;; to provide as inputs.
              (for-each delete-file-recursively
-                       (scandir "."
-                                (lambda (file)
-                                  (not (member file
-                                               '("." ".."
-                                                 "address_sorting"
-                                                 "upb"
-                                                 "xxhash")))))))))))
+                       (scandir "." (negate (cut member <> '("." ".."
+                                                             "address_sorting"
+                                                             "upb"
+                                                             "xxhash"))))))))))
     (build-system pyproject-build-system)
     (arguments
      (list
+      #:tests? #f ; There seems to be no tests.
       #:phases
       #~(modify-phases %standard-phases
           (add-before 'build 'use-system-libraries
@@ -212,16 +211,13 @@ type information of gRPC.")
             (lambda _
               (substitute* '("setup.py" "src/python/grpcio/commands.py")
                 (("'cc'") "'gcc'")))))))
-    (inputs
-     (list abseil-cpp-cxxstd11 c-ares grpc openssl re2 zlib))
-    (native-inputs
-     (list python-cython python-setuptools python-wheel))
-    (propagated-inputs
-     (list python-six))
+    (inputs (list abseil-cpp-cxxstd11 c-ares grpc openssl re2 zlib))
+    (native-inputs (list python-cython-0 python-setuptools))
     (home-page "https://grpc.io";)
     (synopsis "HTTP/2-based RPC framework")
-    (description "This package provides a Python library for communicating
-with the HTTP/2-based RPC framework gRPC.")
+    (description
+     "This package provides a Python library for communicating with the
+HTTP/2-based RPC framework gRPC.")
     (license license:asl2.0)))
 
 (define-public python-grpcio-tools

Reply via email to