[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/10: gnu: python-grpcio: Update to 1.27.2.
From: |
guix-commits |
Subject: |
04/10: gnu: python-grpcio: Update to 1.27.2. |
Date: |
Sat, 21 Mar 2020 15:21:35 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 9dec91229b428a8b6c81354fa7cc68df17dcb724
Author: Marius Bakke <address@hidden>
AuthorDate: Sat Mar 21 12:46:13 2020 +0100
gnu: python-grpcio: Update to 1.27.2.
* gnu/packages/rpc.scm (python-grpcio): Update to 1.27.2.
[source](modules, snippet): New fields.
[arguments]: Add phases to use system libraries and the correct compiler.
[inputs]: Add C-ARES, OPENSSL, and ZLIB.
---
gnu/packages/rpc.scm | 36 ++++++++++++++++++++++++++++++++++--
1 file changed, 34 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/rpc.scm b/gnu/packages/rpc.scm
index 3691440..e73695b 100644
--- a/gnu/packages/rpc.scm
+++ b/gnu/packages/rpc.scm
@@ -127,15 +127,47 @@ browsers to backend services.")
(define-public python-grpcio
(package
(name "python-grpcio")
- (version "1.17.1")
+ (version "1.27.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "grpcio" version))
(sha256
(base32
- "0qb9y6j83nxa6d4kc60i8yfgdm7a8ms7b54kncjzf5y7nsxp8rzx"))))
+ "0zl89jwcff9hkd8mi4yf3qbhns9vbv1s4x4vahm5mkpr7jwk5ras"))
+ (modules '((guix build utils) (ice-9 ftw)))
+ (snippet
+ '(begin
+ (with-directory-excursion "third_party"
+ ;; 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
+ '("." ".."
+ "abseil-cpp"
+ "address_sorting"
+ "upb")))))))
+ #t))))
(build-system python-build-system)
+ (arguments
+ '(#:phases (modify-phases %standard-phases
+ (add-before 'build 'use-system-libraries
+ (lambda _
+ (setenv "GRPC_PYTHON_BUILD_SYSTEM_CARES" "1")
+ (setenv "GRPC_PYTHON_BUILD_SYSTEM_OPENSSL" "1")
+ (setenv "GRPC_PYTHON_BUILD_SYSTEM_ZLIB" "1")
+ #t))
+ (add-before 'build 'configure-compiler
+ (lambda _
+ (substitute* '("setup.py"
"src/python/grpcio/commands.py")
+ (("'cc'") "'gcc'"))
+ #t)))))
+ (inputs
+ `(("c-ares" ,c-ares)
+ ("openssl" ,openssl)
+ ("zlib" ,zlib)))
(propagated-inputs
`(("python-six" ,python-six)))
(home-page "https://grpc.io")
- branch master updated (de1d778 -> e7c7912), guix-commits, 2020/03/21
- 01/10: gnu: python-gast: Update to 0.3.3., guix-commits, 2020/03/21
- 02/10: gnu: gRPC: Update to 1.27.3., guix-commits, 2020/03/21
- 03/10: gnu: TensorFlow: Correct gRPC input., guix-commits, 2020/03/21
- 04/10: gnu: python-grpcio: Update to 1.27.2.,
guix-commits <=
- 06/10: gnu: GRUB: Use the latest version of QEMU for tests., guix-commits, 2020/03/21
- 08/10: gnu: Remove qemu-minimal@2.10., guix-commits, 2020/03/21
- 09/10: gnu: ghc-extra: Downgrade to 1.6.21., guix-commits, 2020/03/21
- 05/10: gnu: GRUB: Build with the latest version of Flex., guix-commits, 2020/03/21
- 07/10: gnu: Remove flex@2.6.1., guix-commits, 2020/03/21
- 10/10: gnu: Add gnome-shell-extension-topicons-redux., guix-commits, 2020/03/21