python312Packages.protobuf: fix build
This commit is contained in:
parent
11e596c56d
commit
4dd692fb1a
@ -60,6 +60,11 @@ buildPythonPackage {
|
||||
#
|
||||
postPatch = ''
|
||||
sed -i "/extra_compile_args.append('-std=c++14')/d" setup.py
|
||||
|
||||
# The former function has been renamed into the latter in Python 3.12.
|
||||
# Does not apply to all protobuf versions, hence --replace-warn.
|
||||
substituteInPlace google/protobuf/internal/json_format_test.py \
|
||||
--replace-warn assertRaisesRegexp assertRaisesRegex
|
||||
'';
|
||||
|
||||
nativeBuildInputs = lib.optional isPyPy tzdata;
|
||||
|
Loading…
Reference in New Issue
Block a user