about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyside/apiextractor.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pyside/apiextractor.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/pyside/apiextractor.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pyside/apiextractor.nix b/nixpkgs/pkgs/development/python-modules/pyside/apiextractor.nix
new file mode 100644
index 000000000000..9398a62997b2
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/pyside/apiextractor.nix
@@ -0,0 +1,30 @@
+{ lib, stdenv, fetchurl, cmake, libxml2, libxslt, python3, qt4 }:
+
+# This derivation does not provide any Python module and should therefore be called via `all-packages.nix`.
+let
+  pythonEnv = python3.withPackages(ps: with ps; [  sphinx ]);
+in stdenv.mkDerivation {
+  name = "pyside-apiextractor-0.10.10";
+
+  src = fetchurl {
+    url = "https://github.com/PySide/Apiextractor/archive/0.10.10.tar.gz";
+    sha256 = "1zj8yrxy08iv1pk38djxw3faimm226w6wmi0gm32w4yczblylwz3";
+  };
+
+  outputs = [ "out" "dev" ];
+
+  preConfigure = ''
+    cmakeFlagsArray=("-DCMAKE_INSTALL_PREFIX=$dev")
+  '';
+
+  nativeBuildInputs = [ cmake pythonEnv ];
+  buildInputs = [ qt4 libxml2 libxslt ];
+
+  meta = with lib; {
+    description = "Eases the development of bindings of Qt-based libraries for high level languages by automating most of the process";
+    license = licenses.gpl2;
+    homepage = "http://www.pyside.org/docs/apiextractor/";
+    maintainers = [ ];
+    platforms = platforms.all;
+  };
+}