mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-28 07:12:30 -05:00
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.
This commit is contained in:
parent
e9f01bfc97
commit
95d26d8530
1 changed files with 14 additions and 3 deletions
|
@ -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 @@ (define-public python-protobuf-3.6
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue