From b0f5cb08bf1f2f7d5a4c659bdd451b904cf7250e Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Sat, 11 Feb 2023 01:42:45 +0100 Subject: [PATCH] pyside2: Disable on Python 3.11 or later PySide2 does not support Python versions after 3.10. See https://bugreports.qt.io/browse/PYSIDE-1864 "There are no plans to support Python versions > 3.10 in the 5.15 branch." --- pkgs/development/python-modules/pyside2/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pyside2/default.nix b/pkgs/development/python-modules/pyside2/default.nix index 1b1f54874376..be281be33c4e 100644 --- a/pkgs/development/python-modules/pyside2/default.nix +++ b/pkgs/development/python-modules/pyside2/default.nix @@ -1,4 +1,6 @@ { python +, pythonAtLeast +, disabledIf , fetchurl , lib , stdenv @@ -9,6 +11,10 @@ , shiboken2 }: +# Only build when Python<=3.10 +# See https://bugreports.qt.io/browse/PYSIDE-1864 +# "There are no plans to support Python versions > 3.10 in the 5.15 branch." +disabledIf (pythonAtLeast "3.11") ( stdenv.mkDerivation rec { pname = "pyside2"; version = "5.15.5"; @@ -74,4 +80,4 @@ stdenv.mkDerivation rec { homepage = "https://wiki.qt.io/Qt_for_Python"; maintainers = with maintainers; [ gebner ]; }; -} +})