From 90356cb4b8a21cdc93b35131eaad32ce50e5f735 Mon Sep 17 00:00:00 2001 From: Raphael Borun Das Gupta Date: Mon, 27 May 2024 00:40:24 +0200 Subject: [PATCH] =?UTF-8?q?pythonPackages.shiboken2:=20mark=20as=20broken?= =?UTF-8?q?=20on=20Python=20=E2=89=A5=203.12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit shiboken2 uses distutils, which was removed in Python 3.12. This is the case in the currently packaged shiboken2 5.15.11, as well as in the latest 5.x upstream release 5.15.12. We can't use the 6.x releases, as those are for shiboken6, not shiboken2. (cherry picked from commit 13baded6aeb86c12029544a55d0311a243bd2858) --- pkgs/development/python-modules/shiboken2/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/shiboken2/default.nix b/pkgs/development/python-modules/shiboken2/default.nix index 5d313334ae3a..abf29ffaff97 100644 --- a/pkgs/development/python-modules/shiboken2/default.nix +++ b/pkgs/development/python-modules/shiboken2/default.nix @@ -7,6 +7,7 @@ qt5, libxcrypt, llvmPackages_15, + pythonAtLeast, }: stdenv.mkDerivation { @@ -58,6 +59,6 @@ stdenv.mkDerivation { ]; homepage = "https://wiki.qt.io/Qt_for_Python"; maintainers = with maintainers; [ gebner ]; - broken = stdenv.isDarwin; + broken = stdenv.isDarwin || pythonAtLeast "3.12"; }; }