python.pkgs.pyqt5: minor improvements
This commit is contained in:
parent
66dc266530
commit
be964d00ea
@ -13,7 +13,6 @@ in buildPythonPackage {
|
|||||||
pname = pname;
|
pname = pname;
|
||||||
version = version;
|
version = version;
|
||||||
format = "other";
|
format = "other";
|
||||||
name = pname + "-" + version;
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python bindings for Qt5";
|
description = "Python bindings for Qt5";
|
||||||
@ -28,7 +27,7 @@ in buildPythonPackage {
|
|||||||
sha256 = "0l2zy6b7bfjxmg4bb8yikg6i8iy2xdwmvk7knfmrzfpqbmkycbrl";
|
sha256 = "0l2zy6b7bfjxmg4bb8yikg6i8iy2xdwmvk7knfmrzfpqbmkycbrl";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig makeWrapper qmake ];
|
nativeBuildInputs = [ pkgconfig qmake ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
lndir qtbase qtsvg qtwebkit qtwebengine dbus_libs
|
lndir qtbase qtsvg qtwebkit qtwebengine dbus_libs
|
||||||
@ -43,10 +42,10 @@ in buildPythonPackage {
|
|||||||
lndir ${dbus-python} $out
|
lndir ${dbus-python} $out
|
||||||
rm -rf "$out/nix-support"
|
rm -rf "$out/nix-support"
|
||||||
|
|
||||||
export PYTHONPATH=$PYTHONPATH:$out/lib/${python.libPrefix}/site-packages
|
export PYTHONPATH=$PYTHONPATH:$out/${python.sitePackages}
|
||||||
|
|
||||||
substituteInPlace configure.py \
|
substituteInPlace configure.py \
|
||||||
--replace 'install_dir=pydbusmoddir' "install_dir='$out/lib/${python.libPrefix}/site-packages/dbus/mainloop'" \
|
--replace 'install_dir=pydbusmoddir' "install_dir='$out/${python.sitePackages}/dbus/mainloop'" \
|
||||||
--replace "ModuleMetadata(qmake_QT=['webkitwidgets'])" "ModuleMetadata(qmake_QT=['webkitwidgets', 'printsupport'])"
|
--replace "ModuleMetadata(qmake_QT=['webkitwidgets'])" "ModuleMetadata(qmake_QT=['webkitwidgets', 'printsupport'])"
|
||||||
|
|
||||||
${python.executable} configure.py -w \
|
${python.executable} configure.py -w \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user