3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.shiboken2: add egg-info

Fixes pip being unable to find shiboken2 (similar issue to #167452 for pyside2).
This commit is contained in:
Majiir Paktu 2022-06-10 15:09:07 -04:00
parent 4d1faea5dd
commit 23b77ecc94

View file

@ -17,7 +17,7 @@ stdenv.mkDerivation {
CLANG_INSTALL_DIR = llvmPackages.libclang.out;
nativeBuildInputs = [ cmake ];
buildInputs = [ llvmPackages.libclang python qt5.qtbase qt5.qtxmlpatterns ];
buildInputs = [ llvmPackages.libclang python python.pkgs.setuptools qt5.qtbase qt5.qtxmlpatterns ];
cmakeFlags = [
"-DBUILD_TESTS=OFF"
@ -26,6 +26,9 @@ stdenv.mkDerivation {
dontWrapQtApps = true;
postInstall = ''
cd ../../..
${python.interpreter} setup.py egg_info --build-type=shiboken2
cp -r shiboken2.egg-info $out/${python.sitePackages}/
rm $out/bin/shiboken_tool.py
'';