1{ python, lib, stdenv, pyside2 2, cmake, qt5, llvmPackages }: 3 4stdenv.mkDerivation { 5 pname = "shiboken2"; 6 7 inherit (pyside2) version src; 8 9 patches = [ 10 ./nix_compile_cflags.patch 11 ]; 12 13 postPatch = '' 14 cd sources/shiboken2 15 ''; 16 17 CLANG_INSTALL_DIR = llvmPackages.libclang.out; 18 19 nativeBuildInputs = [ cmake ]; 20 buildInputs = [ llvmPackages.libclang python qt5.qtbase qt5.qtxmlpatterns ]; 21 22 cmakeFlags = [ 23 "-DBUILD_TESTS=OFF" 24 ]; 25 26 dontWrapQtApps = true; 27 28 postInstall = '' 29 rm $out/bin/shiboken_tool.py 30 ''; 31 32 meta = with lib; { 33 description = "Generator for the PySide2 Qt bindings"; 34 license = with licenses; [ gpl2 lgpl21 ]; 35 homepage = "https://wiki.qt.io/Qt_for_Python"; 36 maintainers = with maintainers; [ gebner ]; 37 broken = stdenv.isDarwin; 38 }; 39}