pyside: fix on Python 3.x, closes #25328

Pyside requires several tools that do not provide Python modules. They
therefore do not need to be build Python-version dependent and so we
move them out of `python-packages.nix`.

Furthermore, shiboken needs libxml2 and libxslt libraries but not their
Python bindings.
This commit is contained in:
Frederik Rietdijk
2017-04-30 10:29:45 +02:00
parent d729a25a3e
commit a4aaf5adfd
7 changed files with 50 additions and 27 deletions

View File

@@ -1,7 +1,12 @@
{ stdenv, fetchurl, cmake, pysideApiextractor, python, sphinx, qt4 }:
{ stdenv, fetchurl, cmake, pysideApiextractor, python2, qt4 }:
stdenv.mkDerivation {
name = "pyside-generatorrunner-0.6.16";
# This derivation does not provide any Python module and should therefore be called via `all-packages.nix`.
let
pythonEnv = python2.withPackages(ps: with ps; [ sphinx ]);
in stdenv.mkDerivation rec {
pname = "pyside-generatorrunner";
version = "0.6.16";
name = "${pname}-${version}";
src = fetchurl {
url = "https://github.com/PySide/Generatorrunner/archive/0.6.16.tar.gz";
@@ -10,7 +15,7 @@ stdenv.mkDerivation {
enableParallelBuilding = true;
buildInputs = [ cmake pysideApiextractor sphinx qt4 ];
buildInputs = [ cmake pysideApiextractor qt4 pythonEnv ];
meta = {
description = "Eases the development of binding generators for C++ and Qt-based libraries by providing a framework to help automating most of the process";