From 92fee1fd31a79dcb19e81c09a39346edb1780d6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Sun, 9 Jul 2023 13:55:44 +0200 Subject: [PATCH] Use zombie-imp on Python 3.12+ --- python-uranium.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-uranium.spec b/python-uranium.spec index 18c0a94..e18b2ca 100644 --- a/python-uranium.spec +++ b/python-uranium.spec @@ -24,6 +24,10 @@ BuildRequires: /usr/bin/msgmerge BuildRequires: cmake BuildRequires: git-core +# UM/PluginRegistry.py imports from imp +# https://github.com/Ultimaker/Uranium/issues/765 +BuildRequires: (python3-zombie-imp if python3 >= 3.12) + # Tests BuildRequires: python3-arcus >= 5.2.2 BuildRequires: python3-cryptography @@ -58,6 +62,7 @@ Requires: python3-scipy Requires: python3-shapely Requires: python3-pyclipper Requires: python3-pyqt6 +Requires: (python3-zombie-imp if python3 >= 3.12) Recommends: python3-numpy-stl %description -n python3-uranium