2021-12-06 16:07:01 +00:00
|
|
|
{ python, lib, stdenv, pyside2
|
2021-01-15 22:18:51 +00:00
|
|
|
, cmake, qt5, llvmPackages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "shiboken2";
|
|
|
|
|
|
|
|
inherit (pyside2) version src;
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./nix_compile_cflags.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
cd sources/shiboken2
|
|
|
|
'';
|
|
|
|
|
|
|
|
CLANG_INSTALL_DIR = llvmPackages.libclang.out;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2022-07-18 16:21:45 +00:00
|
|
|
buildInputs = [ llvmPackages.libclang python python.pkgs.setuptools qt5.qtbase qt5.qtxmlpatterns ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_TESTS=OFF"
|
|
|
|
];
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postInstall = ''
|
2022-07-18 16:21:45 +00:00
|
|
|
cd ../../..
|
|
|
|
${python.interpreter} setup.py egg_info --build-type=shiboken2
|
|
|
|
cp -r shiboken2.egg-info $out/${python.sitePackages}/
|
2020-04-24 23:36:52 +00:00
|
|
|
rm $out/bin/shiboken_tool.py
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Generator for the PySide2 Qt bindings";
|
|
|
|
license = with licenses; [ gpl2 lgpl21 ];
|
|
|
|
homepage = "https://wiki.qt.io/Qt_for_Python";
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
2022-06-26 10:26:21 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|