gentoo-ebuilds/sci-visualization/veusz/files/tomli-4.0.patch
Andrey Grozin fa45ca5214
sci-visualization/veusz: bump to 4.0, now Qt6 based
Signed-off-by: Andrey Grozin <grozin@gentoo.org>
2025-06-03 17:35:26 +07:00

21 lines
766 B
Diff

diff '--color=auto' -r -U3 veusz-4.0.orig/pyqt_setuptools.py veusz-4.0/pyqt_setuptools.py
--- veusz-4.0.orig/pyqt_setuptools.py 2025-06-01 17:38:04.000000000 +0700
+++ veusz-4.0/pyqt_setuptools.py 2025-06-03 17:20:55.266874108 +0700
@@ -8,7 +8,7 @@
import os
import shutil
import subprocess
-import tomli
+import tomllib
from sysconfig import get_path
from setuptools.command.build_ext import build_ext
@@ -244,7 +244,7 @@
pyqt6_toml = os.path.join(pyqt6_include_dir, 'QtCore', 'QtCore.toml')
with open(pyqt6_toml, 'rb') as fin:
- pyqt6_cfg = tomli.load(fin)
+ pyqt6_cfg = tomllib.load(fin)
abi_version = pyqt6_cfg.get('sip-abi-version')
modulename = os.path.splitext(os.path.basename(source))[0]