git.iko.soy/typeable/nixpkgs
on master help sign in
python pyside: move callPackage to python-packages.nix

This should make pyside available for all Python versions.

commit515a13b1f50fad34482457c616e6c5d090c2da3c authorFrederik Rietdijk <fridh@fridh.nl> dateWed 9 Dec 2015, 11:05 (11 years ago) parent2ed93d7
7 files changed+31−18
pkgs/development/python-modules/pyside/apiextractor.nix+3−3 pkgs/development/python-modules/pyside/default.nix+1−1 pkgs/development/python-modules/pyside/generatorrunner.nix+3−3 pkgs/development/python-modules/pyside/shiboken.nix+6−3 pkgs/development/python-modules/pyside/tools.nix+3−3 pkgs/top-level/all-packages.nix+5−5 pkgs/top-level/python-packages.nix+10
pkgs/development/python-modules/pyside/apiextractor.nix+3−3
@@ -1,7 +1,7 @@
1−{ stdenv, fetchurl, cmake, libxml2, libxslt, python27Packages, qt4 }:
1+{ stdenv, fetchurl, cmake, libxml2, libxslt, python, sphinx, qt4 }:
22
33stdenv.mkDerivation {
4− name = "pyside-apiextractor-0.10.10";
4+ name = "${python.libPrefix}-pyside-apiextractor-0.10.10";
55
66 src = fetchurl {
77 url = "https://github.com/PySide/Apiextractor/archive/0.10.10.tar.gz";
@@ -10,7 +10,7 @@ stdenv.mkDerivation {
1010
1111 enableParallelBuilding = true;
1212
13− buildInputs = [ cmake libxml2 libxslt python27Packages.sphinx qt4 ];
13+ buildInputs = [ cmake libxml2 libxslt sphinx qt4 ];
1414
1515 meta = {
1616 description = "Eases the development of bindings of Qt-based libraries for high level languages by automating most of the process";
pkgs/development/python-modules/pyside/default.nix+1−1
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, cmake, pysideGeneratorrunner, pysideShiboken, qt4 }:
1+{ stdenv, fetchurl, cmake, python, pysideGeneratorrunner, pysideShiboken, qt4 }:
22
33stdenv.mkDerivation rec {
44 name = "${python.libPrefix}-pyside-${version}";
pkgs/development/python-modules/pyside/generatorrunner.nix+3−3
@@ -1,7 +1,7 @@
1−{ stdenv, fetchurl, cmake, pysideApiextractor, python27Packages, qt4 }:
1+{ stdenv, fetchurl, cmake, pysideApiextractor, python, sphinx, qt4 }:
22
33stdenv.mkDerivation {
4− name = "pyside-generatorrunner-0.6.16";
4+ name = "${python.libPrefix}-pyside-generatorrunner-0.6.16";
55
66 src = fetchurl {
77 url = "https://github.com/PySide/Generatorrunner/archive/0.6.16.tar.gz";
@@ -10,7 +10,7 @@ stdenv.mkDerivation {
1010
1111 enableParallelBuilding = true;
1212
13− buildInputs = [ cmake pysideApiextractor python27Packages.sphinx qt4 ];
13+ buildInputs = [ cmake pysideApiextractor sphinx qt4 ];
1414
1515 meta = {
1616 description = "Eases the development of binding generators for C++ and Qt-based libraries by providing a framework to help automating most of the process";
pkgs/development/python-modules/pyside/shiboken.nix+6−3
@@ -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;
pkgs/development/python-modules/pyside/tools.nix+3−3
@@ -1,7 +1,7 @@
1−{ stdenv, fetchurl, cmake, pyside, python27, qt4, pysideShiboken }:
1+{ stdenv, fetchurl, cmake, pyside, python, qt4, pysideShiboken }:
22
33stdenv.mkDerivation {
4− name = "pyside-tools-0.2.15";
4+ name = "${python.libPrefix}-pyside-tools-0.2.15";
55
66 src = fetchurl {
77 url = "https://github.com/PySide/Tools/archive/0.2.15.tar.gz";
@@ -10,7 +10,7 @@ stdenv.mkDerivation {
1010
1111 enableParallelBuilding = true;
1212
13− buildInputs = [ cmake pyside python27 qt4 pysideShiboken ];
13+ buildInputs = [ cmake pyside python qt4 pysideShiboken ];
1414
1515 meta = {
1616 description = "Tools for pyside, the LGPL-licensed Python bindings for the Qt cross-platform application and UI framework";
pkgs/top-level/all-packages.nix+5−5
@@ -9045,15 +9045,15 @@ let
90459045
90469046 pyqt4 = pythonPackages.pyqt4;
90479047
9048− pysideApiextractor = callPackage ../development/python-modules/pyside/apiextractor.nix { };
9048+ pysideApiextractor = pythonPackages.pysideApiextractor;
90499049
9050− pysideGeneratorrunner = callPackage ../development/python-modules/pyside/generatorrunner.nix { };
9050+ pysideGeneratorrunner = pythonPackages.pysideGeneratorrunner;
90519051
9052− pyside = callPackage ../development/python-modules/pyside { };
9052+ pyside = pythonPackages.pyside;
90539053
9054− pysideTools = callPackage ../development/python-modules/pyside/tools.nix { };
9054+ pysideTools = pythonPackages.pysideTools;
90559055
9056− pysideShiboken = callPackage ../development/python-modules/pyside/shiboken.nix { };
9056+ pysideShiboken = pythonpackages.pysideShiboken;
90579057
90589058 pyxml = callPackage ../development/python-modules/pyxml { };
90599059
pkgs/top-level/python-packages.nix+10
@@ -169,6 +169,16 @@ in modules // {
169169 qt5 = pkgs.qt5;
170170 };
171171
172+ pyside = callPackage ../development/python-modules/pyside { };
173+
174+ pysideApiextractor = callPackage ../development/python-modules/pyside/apiextractor.nix { };
175+
176+ pysideGeneratorrunner = callPackage ../development/python-modules/pyside/generatorrunner.nix { };
177+
178+ pysideShiboken = callPackage ../development/python-modules/pyside/shiboken.nix { };
179+
180+ pysideTools = callPackage ../development/python-modules/pyside/tools.nix { };
181+
172182 sip = callPackage ../development/python-modules/sip { };
173183
174184 sip_4_16 = callPackage ../development/python-modules/sip/4.16.nix { };