python pyside: move callPackage to python-packages.nix

This should make pyside available for all Python versions.
This commit is contained in:
Frederik Rietdijk
2015-12-09 11:05:26 +01:00
parent 2ed93d74d5
commit 515a13b1f5
7 changed files with 31 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
{ stdenv, fetchurl, cmake, libxml2, libxslt, python27Packages, qt4 }:
{ stdenv, fetchurl, cmake, libxml2, libxslt, python, sphinx, qt4 }:
stdenv.mkDerivation {
name = "pyside-apiextractor-0.10.10";
name = "${python.libPrefix}-pyside-apiextractor-0.10.10";
src = fetchurl {
url = "https://github.com/PySide/Apiextractor/archive/0.10.10.tar.gz";
@@ -10,7 +10,7 @@ stdenv.mkDerivation {
enableParallelBuilding = true;
buildInputs = [ cmake libxml2 libxslt python27Packages.sphinx qt4 ];
buildInputs = [ cmake libxml2 libxslt sphinx qt4 ];
meta = {
description = "Eases the development of bindings of Qt-based libraries for high level languages by automating most of the process";

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake, pysideGeneratorrunner, pysideShiboken, qt4 }:
{ stdenv, fetchurl, cmake, python, pysideGeneratorrunner, pysideShiboken, qt4 }:
stdenv.mkDerivation rec {
name = "${python.libPrefix}-pyside-${version}";

View File

@@ -1,7 +1,7 @@
{ stdenv, fetchurl, cmake, pysideApiextractor, python27Packages, qt4 }:
{ stdenv, fetchurl, cmake, pysideApiextractor, python, sphinx, qt4 }:
stdenv.mkDerivation {
name = "pyside-generatorrunner-0.6.16";
name = "${python.libPrefix}-pyside-generatorrunner-0.6.16";
src = fetchurl {
url = "https://github.com/PySide/Generatorrunner/archive/0.6.16.tar.gz";
@@ -10,7 +10,7 @@ stdenv.mkDerivation {
enableParallelBuilding = true;
buildInputs = [ cmake pysideApiextractor python27Packages.sphinx qt4 ];
buildInputs = [ cmake pysideApiextractor sphinx qt4 ];
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";

View File

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

View File

@@ -1,7 +1,7 @@
{ stdenv, fetchurl, cmake, pyside, python27, qt4, pysideShiboken }:
{ stdenv, fetchurl, cmake, pyside, python, qt4, pysideShiboken }:
stdenv.mkDerivation {
name = "pyside-tools-0.2.15";
name = "${python.libPrefix}-pyside-tools-0.2.15";
src = fetchurl {
url = "https://github.com/PySide/Tools/archive/0.2.15.tar.gz";
@@ -10,7 +10,7 @@ stdenv.mkDerivation {
enableParallelBuilding = true;
buildInputs = [ cmake pyside python27 qt4 pysideShiboken ];
buildInputs = [ cmake pyside python qt4 pysideShiboken ];
meta = {
description = "Tools for pyside, the LGPL-licensed Python bindings for the Qt cross-platform application and UI framework";