[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/12: gnu: Add python-protobuf-5.
From: |
guix-commits |
Subject: |
08/12: gnu: Add python-protobuf-5. |
Date: |
Mon, 25 Nov 2024 06:27:06 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 498b6cd008f1989b7cfda060d8a6790015eb2340
Author: Morgan Smith <Morgan.J.Smith@outlook.com>
AuthorDate: Sat Nov 23 17:58:51 2024 +0100
gnu: Add python-protobuf-5.
* gnu/packages/protobuf.scm (python-protobuf-5): New variable.
Change-Id: Ic181a92bc0e3eb66adf535d98b192cbb006028ad
Signed-off-by: Luca Matei Pintilie <luca@lucamatei.com>
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/protobuf.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/protobuf.scm b/gnu/packages/protobuf.scm
index b8679eff25..59f49c8cf4 100644
--- a/gnu/packages/protobuf.scm
+++ b/gnu/packages/protobuf.scm
@@ -436,6 +436,39 @@ from protobuf specification files.")
(propagated-inputs (list python-protobuf))
(synopsis "Small code-size Protocol Buffers implementation in Python")))
+(define-public python-protobuf-5
+ (package
+ (name "python-protobuf")
+ (version "5.27.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "protobuf" version))
+ (sha256
+ (base32
+ "0b6qxb6hnhzmiz1wnjrjdmwxx2ddv9zr86p89vivgwj0wq1hjil2"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; FIXME: ImportError: 'testing_refleaks' module incorrectly imported
from
+ ;;
'/gnu/store/...-python-protobuf-5.27.3/lib/python3.10/site-packages/google/protobuf/internal'.
+ ;; Expected
'/tmp/guix-build-python-protobuf-5.27.3.drv-0/protobuf-5.27.3/google/protobuf/internal'.
+ ;; Is this module globally installed?
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "-m" "unittest" )))))))
+ (inputs (list protobuf))
+ (home-page "https://github.com/protocolbuffers/protobuf")
+ (synopsis "Protocol buffers is a data interchange format")
+ (description
+ "Protocol buffers are a language-neutral, platform-neutral extensible
+mechanism for serializing structured data.")
+ (license license:bsd-3)))
+
(define-public python-protobuf
(package
(name "python-protobuf")
- branch master updated (47ab553178 -> 827ec92f44), guix-commits, 2024/11/25
- 01/12: tests: sddm: Update expected message on login screen., guix-commits, 2024/11/25
- 12/12: gnu: gajim-openpgp: Update to 1.6.1., guix-commits, 2024/11/25
- 05/12: gnu: libfabric: Enable libcxi support., guix-commits, 2024/11/25
- 07/12: gnu: python-nbxmpp: Update to 5.0.3., guix-commits, 2024/11/25
- 09/12: gnu: Add python-omemo-dr., guix-commits, 2024/11/25
- 03/12: gnu: Add cxi-driver., guix-commits, 2024/11/25
- 10/12: gnu: gajim: Update to 1.9.3., guix-commits, 2024/11/25
- 06/12: gnu: openmpi: Disable static libraries., guix-commits, 2024/11/25
- 08/12: gnu: Add python-protobuf-5.,
guix-commits <=
- 04/12: gnu: Add libcxi., guix-commits, 2024/11/25
- 11/12: gnu: Deprecate gajim-omemo., guix-commits, 2024/11/25
- 02/12: gnu: Add cassini-headers., guix-commits, 2024/11/25