@@ -1,6 +1,7 @@
1−{ stdenv, fetchurl, cmake, pysideApiextractor, pysideGeneratorrunner, python27, python27Packages, qt4 }:
1+{ stdenv, fetchurl, cmake, libxml2, libxslt, pysideApiextractor, pysideGeneratorrunner, python, sphinx, qt4, isPy3k, isPy35 }:
22
3−stdenv.mkDerivation rec {
3+# Python 3.5 is not supported: https://github.com/PySide/Shiboken/issues/77
4+if isPy35 then throw "shiboken not supported for interpreter ${python.executable}" else stdenv.mkDerivation rec {
45 name = "${python.libPrefix}-pyside-shiboken-${version}";
56 version = "1.2.4";
67
@@ -11,7 +12,7 @@ stdenv.mkDerivation rec {
1112
1213 enableParallelBuilding = true;
1314
14− buildInputs = [ cmake pysideApiextractor pysideGeneratorrunner python27 python27Packages.sphinx qt4 ];
15+ buildInputs = [ cmake libxml2 libxslt pysideApiextractor pysideGeneratorrunner python sphinx qt4 ];
1516
1617 preConfigure = ''
1718 echo "preConfigure: Fixing shiboken_generator install target."
@@ -19,6 +20,8 @@ stdenv.mkDerivation rec {
1920 \"$\{GENERATORRUNNER_PLUGIN_DIR}\" lib/generatorrunner/
2021 '';
2122
23+ cmakeFlags = if isPy3k then "-DUSE_PYTHON3=TRUE" else null;
24+
2225 meta = {
2326 description = "Plugin (front-end) for pyside-generatorrunner, that generates bindings for C++ libraries using CPython source code";
2427 license = stdenv.lib.licenses.gpl2;