gnu: Add grpc-for-python-grpcio.

* gnu/packages/rpc.scm (grpc-for-python-grpcio): New variable.
This commit is contained in:
Ricardo Wurmus 2023-04-20 22:40:43 +02:00
parent 54db21b9f8
commit d0ca8f41c1
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2019, 2023 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
@ -123,6 +123,24 @@ (define-public grpc
browsers to backend services.")
(license license:asl2.0)))
(define-public grpc-for-python-grpcio
(package
(inherit grpc)
(name "grpc")
(version "1.47.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/grpc/grpc")
(commit (string-append "v" version))
(recursive? #true)))
(file-name (git-file-name name version))
(sha256
(base32
"1nl2d92f3576m69991d7gwyk1giavm04fagr612yjh90rni01ikw"))))
(inputs
(list abseil-cpp-20211102.0 c-ares/cmake openssl re2 zlib))))
;; Some packages require this older version.
(define-public grpc-1.16.1
(package