Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / shiboken2 / default.nix
blob23836addd0ca9cac3a2536193e6ba47640ff1cba
1 { buildPythonPackage, python, fetchurl, lib, stdenv, pyside2
2 , cmake, qt5, llvmPackages }:
4 stdenv.mkDerivation {
5   pname = "shiboken2";
7   inherit (pyside2) version src;
9   patches = [
10     ./nix_compile_cflags.patch
11   ];
13   postPatch = ''
14     cd sources/shiboken2
15   '';
17   CLANG_INSTALL_DIR = llvmPackages.libclang.out;
19   nativeBuildInputs = [ cmake ];
20   buildInputs = [ llvmPackages.libclang python qt5.qtbase qt5.qtxmlpatterns ];
22   cmakeFlags = [
23     "-DBUILD_TESTS=OFF"
24   ];
26   dontWrapQtApps = true;
28   postInstall = ''
29     rm $out/bin/shiboken_tool.py
30   '';
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   };