[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/07: gnu: python-protobuf-3.6: Patch for Python 3.10.
From: |
guix-commits |
Subject: |
06/07: gnu: python-protobuf-3.6: Patch for Python 3.10. |
Date: |
Fri, 21 Apr 2023 07:11:33 -0400 (EDT) |
rekado pushed a commit to branch core-updates
in repository guix.
commit 95d26d8530e670b6e96a1c18fd52243de449cd85
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri Apr 21 09:56:45 2023 +0200
gnu: python-protobuf-3.6: Patch for Python 3.10.
* gnu/packages/protobuf.scm (python-protobuf-3.6)[arguments]: Patch
collections import.
[native-inputs]: Add python-setuptools-for-tensorflow.
---
gnu/packages/protobuf.scm | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/protobuf.scm b/gnu/packages/protobuf.scm
index 112b9b1fb1..23feef7ba5 100644
--- a/gnu/packages/protobuf.scm
+++ b/gnu/packages/protobuf.scm
@@ -2,7 +2,7 @@
;;; Copyright © 2014, 2022 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2016 Daniel Pimentel <d4n1@d4n1.org>
;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
-;;; Copyright © 2017, 2018, 2019, 2022 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2017, 2018, 2019, 2022, 2023 Ricardo Wurmus
<rekado@elephly.net>
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2020, 2021, 2022, 2023 Maxim Cournoyer
<maxim.cournoyer@gmail.com>
;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
@@ -469,8 +469,19 @@ structured data.")
(sha256
(base32
"04bqb12smlckzmgkj6vgmpbr3cby0n6726cmz33bqr7kn1vb728l"))))
- (arguments '()) ;no "--cpp_implementation" here
- (inputs (list python-six))))
+ (arguments
+ (list
+ #:phases
+ '(modify-phases %standard-phases
+ (add-after 'unpack 'compatibility
+ (lambda _
+ (substitute* '("google/protobuf/internal/containers.py"
+ "google/protobuf/internal/well_known_types.py")
+ (("collections.Mutable")
+ "collections.abc.Mutable")))))))
+ (inputs (list python-six))
+ (native-inputs
+ (list python-setuptools-for-tensorflow))))
(define-public python-proto-plus
(package
- branch core-updates updated (fe4978d5b5 -> 4065d9dfd5), guix-commits, 2023/04/21
- 04/07: gnu: grpc-1.16.1: Correct input modifications., guix-commits, 2023/04/21
- 06/07: gnu: python-protobuf-3.6: Patch for Python 3.10.,
guix-commits <=
- 01/07: gnu: Add abseil-cpp-20211102.0., guix-commits, 2023/04/21
- 02/07: gnu: Add grpc-for-python-grpcio., guix-commits, 2023/04/21
- 03/07: gnu: python-grpcio: Rebuild Cythonized source files., guix-commits, 2023/04/21
- 05/07: gnu: python-setuptools-for-tensorflow: Patch for Python 3.10 compatibility., guix-commits, 2023/04/21
- 07/07: gnu: tensorflow: Adjust for Python 3.10 compatibility., guix-commits, 2023/04/21