gnu: python-protobuf: Use C++ implementation.

* gnu/packages/protobuf.scm (python-protobuf): Use C++ implementation.
  [inputs]: Add protobuf.
  [arguments]: Add --cpp_implementation configure flags.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Ontje Lünsdorf 2022-11-10 09:11:11 +01:00 committed by Ludovic Courtès
parent 51d6bd3507
commit 9b016e2991
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -406,6 +406,12 @@ (define-public python-protobuf
(base32
"1ja2vpk9nklllmsirmil2s4l7ni9yfqvbvj47zz5xx17s1k1bhxd"))))
(build-system python-build-system)
(inputs (list protobuf))
(arguments
`(;; Favor C++ implementation from protobuf over the native Python
;; implementation. The additional dependency yields significant
;; performance improvements for some workloads.
#:configure-flags '("--cpp_implementation")))
(home-page "https://github.com/google/protobuf")
(synopsis "Protocol buffers is a data interchange format")
(description