12 stdenv' = if stdenv.cc.isClang then stdenv else llvmPackages.stdenv;
14 stdenv'.mkDerivation (finalAttrs: {
19 # https://download.qt.io/official_releases/QtForPython/shiboken6/
20 # FIXME: inconsistent version numbers in directory name and tarball?
21 url = "mirror://qt/official_releases/QtForPython/shiboken6/PySide6-6.8.0.2-src/pyside-setup-everywhere-src-6.8.0.tar.xz";
22 hash = "sha256-Ghohmo8yfjQNJYJ1+tOp8mG48EvFcEF0fnPdatJStOE=";
25 sourceRoot = "pyside-setup-everywhere-src-6.8.0/sources/shiboken6";
27 patches = [ ./fix-include-qt-headers.patch ];
31 (python.pythonOnBuildForHost.withPackages (ps: [ ps.setuptools ]))
32 ] ++ lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
38 python.pkgs.qt6.qtbase
41 python.pkgs.setuptools
43 ++ lib.optionals stdenv.hostPlatform.isDarwin [
44 python.pkgs.qt6.darwinVersionInputs
47 cmakeFlags = [ "-DBUILD_TESTS=OFF" ];
49 # We intentionally use single quotes around `${BASH}` since it expands from a CMake
50 # variable available in this file.
52 substituteInPlace cmake/ShibokenHelpers.cmake --replace-fail '#!/bin/bash' '#!''${BASH}'
57 ${python.pythonOnBuildForHost.interpreter} setup.py egg_info --build-type=shiboken6
58 cp -r shiboken6.egg-info $out/${python.sitePackages}/
61 dontWrapQtApps = true;
64 description = "Generator for the pyside6 Qt bindings";
65 license = with lib.licenses; [
70 homepage = "https://wiki.qt.io/Qt_for_Python";
71 changelog = "https://code.qt.io/cgit/pyside/pyside-setup.git/tree/doc/changelogs/changes-${finalAttrs.version}?h=v${finalAttrs.version}";
72 maintainers = with lib.maintainers; [ gebner ];
73 platforms = lib.platforms.all;