Change:
<ins> { lib , fetchurl , llvmPackages , python , qt6 , cmake , autoPatchelfHook , stdenv , libxcrypt }: llvmPackages.stdenv.mkDerivation rec { pname = "shiboken6"; version = "6.5.0"; src = fetchurl { # https://download.qt.io/official_releases/QtForPython/shiboken6/ url = "https://download.qt.io/official_releases/QtForPython/shiboken6/PySide6-${version}-src/pyside-setup-everywhere-src-${version}.tar.xz"; sha256 = "sha256-bvU7KRJyZ+OBkX5vk5nOdg7cBkTNWDGYix3nLJ1YOrQ="; }; sourceRoot = "pyside-setup-everywhere-src-${lib.versions.majorMinor version}/sources/${pname}"; patches = [ ./fix-include-qt-headers.patch ]; # Due to Shiboken.abi3.so being linked to libshiboken6.abi3.so.6.5 in the build tree, # we need to remove the build tree reference from the RPATH and then add the correct # directory to the RPATH. On Linux, the second part is handled by autoPatchelfHook. # https://bugreports.qt.io/browse/PYSIDE-2233 postBuild = '' echo "fixing RPATH of Shiboken.abi3.so" '' + (if stdenv.isDarwin then '' invalid_rpaths=$(otool -l Shiboken.abi3.so | awk ' /^[^ ]/ {f = 0} $2 == "LC_RPATH" && $1 == "cmd" {f = 1} f && gsub(/^ *path | (offset [0-9]+)$/, "") == 2 ' | grep --invert-match /nix/store) install_name_tool $(echo $invalid_rpaths | sed 's/^/-delete_rpath /' | tr 'n' ' ' | sed 's/ $//') Shiboken.abi3.so install_name_tool -add_rpath $out/lib Shiboken.abi3.so '' else '' patchelf Shiboken.abi3.so --shrink-rpath --allowed-rpath-prefixes /nix/store ''); cmakeFlags = [ "-DBUILD_TESTS=OFF" ]; dontWrapQtApps = true; nativeBuildInputs = [ cmake python ] ++ lib.optionals stdenv.isLinux [ autoPatchelfHook ]; buildInputs = [ llvmPackages.llvm llvmPackages.libclang qt6.qtbase ] ++ (lib.optionals (python.pythonOlder "3.9") [ # see similar issue: 202262 # libxcrypt is required for crypt.h for building older python modules libxcrypt ]); meta = with lib; { description = "Generator for the pyside6 Qt bindings"; license = with licenses; [ lgpl3Only gpl2Only gpl3Only ]; homepage = "https://wiki.qt.io/Qt_for_Python"; maintainers = with maintainers; [ gebner Enzime ]; }; } </ins>

Discussion:
: code generator for python bindings to C++ code : python bindings to qt6 (alternative to pyqt6) with qt6 - ping status unknown. i started this some months ago ... homepage URL: source URL: and license: lgpl platforms: all
Just ran into a program I’d like to use that depends on PySide6 – so I’d be curious about having that in nixpkgs too
Also needed for to upgrade past 2.0.13 (currently at 2.0.6 in nixpkgs, latest is 2.0.15). Looks like a WIP PR got closed here:
I'm a real noob but i'm trying to install mtkclient with termux on an android device but it requires shiboken6 and pyside6. any help? ~/mtkclient $ pip install pyside6 ERROR: Could not find a version that satisfies the requirement pyside6 (from versions: none) ERROR: No matching distribution found for pyside6 ~/mtkclient $ pip install pyside Collecting pyside Downloading PySide- (9.3 MB) 9.3/9.3 MB 876.5 kB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. exit code: 1 [1 lines of output] only these python versions are supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)] [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. exit code: 1 See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. ~/mtkclient $
Came across this, too as I wanted to update streamdeck-ui :/ I'm not familiar enough to package pyside6, do you think you could do it and find time to have a look? (the streamdeck update and debugging if needed I can try to do) Even OP got banned (and his PRs closed), the request for the PySide6 is still valid if better I can also create a new / issue for it.