pyqt4: update to 4.10.3 and add python3 support
also add python3 support for dbus-python
This commit is contained in:
@@ -1,32 +1,29 @@
|
||||
{ stdenv, fetchurl, python, sip, qt4, pythonDBus, pkgconfig, lndir, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "PyQt-x11-gpl-4.10.1";
|
||||
|
||||
name = "PyQt-x11-gpl-4.10.3";
|
||||
|
||||
src = fetchurl {
|
||||
urls = [
|
||||
"http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/${name}.tar.gz"
|
||||
"http://pkgs.fedoraproject.org/lookaside/pkgs/PyQt4/PyQt-x11-gpl-4.10.1.tar.gz/e5973c4ec0b0469f329bc00209d2ad9c/PyQt-x11-gpl-4.10.1.tar.gz"
|
||||
];
|
||||
sha256 = "05psk23x6bc83hrkw7h88a14jxhvfbxms0c8yrdar8xqvkv8cdb2";
|
||||
url = "mirror://sourceforge/pyqt/PyQt4/PyQt-4.10.3/PyQt-x11-gpl-4.10.3.tar.gz";
|
||||
sha256 = "0c7nifx3w0b9w1k0g9dvav1rv1lvd7awmq0zkqn3n8clyfzbw4x7";
|
||||
};
|
||||
|
||||
|
||||
configurePhase = ''
|
||||
mkdir -p $out
|
||||
lndir ${pythonDBus} $out
|
||||
|
||||
export PYTHONPATH=$PYTHONPATH:$out/lib/${python.libPrefix}/site-packages
|
||||
|
||||
|
||||
substituteInPlace configure.py \
|
||||
--replace 'install_dir=pydbusmoddir' "install_dir='$out/lib/${python.libPrefix}/site-packages/dbus/mainloop'"
|
||||
|
||||
|
||||
configureFlagsArray=( \
|
||||
--confirm-license --bindir $out/bin \
|
||||
--destdir $out/lib/${python.libPrefix}/site-packages \
|
||||
--plugin-destdir $out/lib/qt4/plugins --sipdir $out/share/sip \
|
||||
--dbus=$out/include/dbus-1.0 --verbose)
|
||||
|
||||
python configure.py $configureFlags "''${configureFlagsArray[@]}"
|
||||
${python.executable} configure.py $configureFlags "''${configureFlagsArray[@]}"
|
||||
'';
|
||||
|
||||
buildInputs = [ python pkgconfig makeWrapper qt4 lndir ];
|
||||
@@ -40,7 +37,7 @@ stdenv.mkDerivation rec {
|
||||
''; # */
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
||||
meta = {
|
||||
description = "Python bindings for Qt";
|
||||
license = "GPL";
|
||||
Reference in New Issue
Block a user