python3Packages.pysideShiboken: fix build
This commit is contained in:
parent
ae66cd924c
commit
0b27960dcc
@ -1,10 +1,23 @@
|
|||||||
{ lib, fetchurl, cmake, buildPythonPackage, libxml2, libxslt, pysideApiextractor, pysideGeneratorrunner, python, sphinx, qt4, isPy3k, isPy35, isPy36, isPy37 }:
|
{ lib, fetchurl, buildPythonPackage
|
||||||
|
, cmake
|
||||||
|
, libxml2
|
||||||
|
, pkg-config
|
||||||
|
, libxslt
|
||||||
|
, pysideApiextractor
|
||||||
|
, pysideGeneratorrunner
|
||||||
|
, python
|
||||||
|
, sphinx
|
||||||
|
, qt4
|
||||||
|
, isPy3k
|
||||||
|
, isPy35
|
||||||
|
, isPy36
|
||||||
|
, isPy37
|
||||||
|
}:
|
||||||
|
|
||||||
# This derivation provides a Python module and should therefore be called via `python-packages.nix`.
|
|
||||||
# Python 3.5 is not supported: https://github.com/PySide/Shiboken/issues/77
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyside-shiboken";
|
pname = "pyside-shiboken";
|
||||||
version = "1.2.4";
|
version = "1.2.4";
|
||||||
|
disabled = !isPy3k;
|
||||||
|
|
||||||
format = "other";
|
format = "other";
|
||||||
|
|
||||||
@ -13,10 +26,11 @@ buildPythonPackage rec {
|
|||||||
sha256 = "1536f73a3353296d97a25e24f9554edf3e6a48126886f8d21282c3645ecb96a4";
|
sha256 = "1536f73a3353296d97a25e24f9554edf3e6a48126886f8d21282c3645ecb96a4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake libxml2 libxslt pysideApiextractor pysideGeneratorrunner python sphinx qt4 ];
|
nativeBuildInputs = [ cmake pkg-config pysideApiextractor pysideGeneratorrunner sphinx qt4 ];
|
||||||
|
|
||||||
|
buildInputs = [ python libxml2 libxslt ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
echo "preConfigure: Fixing shiboken_generator install target."
|
echo "preConfigure: Fixing shiboken_generator install target."
|
||||||
@ -27,7 +41,11 @@ buildPythonPackage rec {
|
|||||||
# gcc6 patch was also sent upstream: https://github.com/pyside/Shiboken/pull/86
|
# gcc6 patch was also sent upstream: https://github.com/pyside/Shiboken/pull/86
|
||||||
patches = [ ./gcc6.patch ] ++ (lib.optional (isPy35 || isPy36 || isPy37) ./shiboken_py35.patch);
|
patches = [ ./gcc6.patch ] ++ (lib.optional (isPy35 || isPy36 || isPy37) ./shiboken_py35.patch);
|
||||||
|
|
||||||
cmakeFlags = lib.optional isPy3k "-DUSE_PYTHON3=TRUE";
|
cmakeFlags = lib.optionals isPy3k [
|
||||||
|
"-DUSE_PYTHON3=TRUE"
|
||||||
|
"-DPYTHON3_INCLUDE_DIR=${lib.getDev python}/include/${python.libPrefix}"
|
||||||
|
"-DPYTHON3_LIBRARY=${lib.getLib python}/lib"
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Plugin (front-end) for pyside-generatorrunner, that generates bindings for C++ libraries using CPython source code";
|
description = "Plugin (front-end) for pyside-generatorrunner, that generates bindings for C++ libraries using CPython source code";
|
||||||
|
Loading…
Reference in New Issue
Block a user