13 stdenv.mkDerivation rec {
18 url = "https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/pyside-setup-opensource-src-${version}.tar.xz";
19 sha256 = "sha256-2lZ807eFTSegtK/j6J3osvmLem1XOTvlbx/BP3cPryk=";
23 ./dont_ignore_optional_modules.patch
32 "-DPYTHON_EXECUTABLE=${python.interpreter}"
35 env.NIX_CFLAGS_COMPILE = "-I${qt5.qtdeclarative.dev}/include/QtQuick/${qt5.qtdeclarative.version}/QtQuick";
37 nativeBuildInputs = [ cmake ninja qt5.qmake python ];
39 buildInputs = (with qt5; [
54 ]) ++ (with python.pkgs; [
56 ]) ++ (lib.optionals (python.pythonOlder "3.9") [
57 # see similar issue: 202262
58 # libxcrypt is required for crypt.h for building older python modules
62 propagatedBuildInputs = [ shiboken2 ];
64 dontWrapQtApps = true;
68 ${python.pythonOnBuildForHost.interpreter} setup.py egg_info --build-type=pyside2
69 cp -r PySide2.egg-info $out/${python.sitePackages}/
73 description = "LGPL-licensed Python bindings for Qt";
74 license = licenses.lgpl21;
75 homepage = "https://wiki.qt.io/Qt_for_Python";
76 maintainers = with maintainers; [ gebner ];