1{ lib, fetchFromGitHub, cmake, buildPythonPackage, pysideGeneratorrunner, pysideShiboken, qt4, mesa, libGL }: 2 3buildPythonPackage rec { 4 pname = "pyside"; 5 version = "1.2.4"; 6 format = "other"; 7 8 src = fetchFromGitHub { 9 owner = "PySide"; 10 repo = "PySide"; 11 rev = version; 12 sha256 = "sha256-14XbihJRMk9WaeK6NUBV/4OMFZF8EBIJgEJEaCU8Ecg="; 13 }; 14 15 outputs = [ "out" "dev" ]; 16 17 preConfigure = '' 18 cmakeFlagsArray=("-DCMAKE_INSTALL_PREFIX=$dev") 19 ''; 20 21 nativeBuildInputs = [ cmake pysideGeneratorrunner pysideShiboken qt4 ]; 22 23 buildInputs = [ mesa libGL ]; 24 25 makeFlags = [ "QT_PLUGIN_PATH=${pysideShiboken}/lib/generatorrunner" ]; 26 27 dontWrapQtApps = true; 28 29 meta = { 30 description = "LGPL-licensed Python bindings for the Qt cross-platform application and UI framework"; 31 license = lib.licenses.lgpl21; 32 homepage = "http://www.pyside.org"; 33 }; 34}