From 603c0346d1dcdc329c4cf423a5cce510f1db3b57 Mon Sep 17 00:00:00 2001 From: Raphael Das Gupta Date: Mon, 27 May 2024 10:38:46 +0200 Subject: [PATCH] =?UTF-8?q?pythonPackages.shiboken2:=20mark=20as=20broken?= =?UTF-8?q?=20on=20Python=20=E2=89=A5=203.12=20(#314968)?= 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. --- 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"; }; }