From dfcc19a0c32a41297b8c68e604b1887c885da860 Mon Sep 17 00:00:00 2001 From: Cayetano Santos Date: Mon, 4 Aug 2025 11:37:35 +0200 Subject: [PATCH] gnu: Add python-protobuf-6. * gnu/packages/protobuf.scm (python-protobuf-6): New variable. Change-Id: I9bc3eaf6b644719a983458e37a44e0e6bc55d71f Signed-off-by: Danny Milosavljevic --- gnu/packages/protobuf.scm | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/gnu/packages/protobuf.scm b/gnu/packages/protobuf.scm index a442ed4e6ff2b303533bc1fc3b0acc6fc59b570d..0aa82e59526b587d1a93a2c388927c3da232e203 100644 --- a/gnu/packages/protobuf.scm +++ b/gnu/packages/protobuf.scm @@ -121,11 +121,7 @@ data in motion, or as a file format for data at rest.") (let* ((pred (negate (cut member <> (append '("." "..") preserve)))) (items (scandir "." pred))) - (for-each (lambda (item) - (if (directory? item) - (delete-file-recursively item) - (delete-file item))) - items)))) + (for-each delete-file-recursively items)))) ;; "utf8_range" development now takes place in main protobuf ;; repository. (delete-all-but "third_party" "utf8_range"))) @@ -185,6 +181,24 @@ yet extensible format. Google uses Protocol Buffers for almost all of its internal RPC protocols and file formats.") (license license:bsd-3))) +(define-public python-protobuf-6 + (package + (inherit protobuf-6) + (name "python-protobuf") + (version "6.31.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "protobuf" version)) + (sha256 + (base32 + "16nakbb14jjzhgmrvpn0g7k0iasgl8p0xa3kvjj5gfghhb4w9jnq")))) + (outputs (list "out")) + (build-system pyproject-build-system) + (arguments (list #:tests? #f)) ;no tests provided for Python variant + (native-inputs (list python-setuptools python-wheel)) + (inputs (list protobuf-6)))) + (define-public protobuf (package (name "protobuf")