2021-12-06 16:07:01 +00:00
|
|
|
{ lib, fetchFromGitHub, cmake, buildPythonPackage, pysideGeneratorrunner, pysideShiboken, qt4, mesa, libGL }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyside";
|
|
|
|
version = "1.2.4";
|
|
|
|
format = "other";
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PySide";
|
|
|
|
repo = "PySide";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-14XbihJRMk9WaeK6NUBV/4OMFZF8EBIJgEJEaCU8Ecg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cmakeFlagsArray=("-DCMAKE_INSTALL_PREFIX=$dev")
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ cmake pysideGeneratorrunner pysideShiboken qt4 ];
|
|
|
|
|
|
|
|
buildInputs = [ mesa libGL ];
|
|
|
|
|
|
|
|
makeFlags = [ "QT_PLUGIN_PATH=${pysideShiboken}/lib/generatorrunner" ];
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "LGPL-licensed Python bindings for the Qt cross-platform application and UI framework";
|
|
|
|
license = lib.licenses.lgpl21;
|
|
|
|
homepage = "http://www.pyside.org";
|
|
|
|
};
|
|
|
|
}
|