1{ fetchurl, stdenv, pkgconfig, python, pygobject3
2, gst-plugins-base, ncurses
3}:
4
5stdenv.mkDerivation rec {
6 pname = "gst-python";
7 version = "1.10.4";
8 name = "${pname}-${version}";
9
10 src = fetchurl {
11 urls = [
12 "${meta.homepage}/src/gst-python/${name}.tar.xz"
13 "mirror://gentoo/distfiles/${name}.tar.xz"
14 ];
15 sha256 = "04l2hvvz9b0f3nyds1k3yfk5di8a91fpr6maj19c11mwp1s82l2r";
16 };
17
18 patches = [ ./different-path-with-pygobject.patch ];
19
20 outputs = [ "out" "dev" ];
21
22 nativeBuildInputs = [ pkgconfig python ];
23
24 # XXX: in the Libs.private field of python3.pc
25 buildInputs = [ ncurses ];
26
27 preConfigure = ''
28 export configureFlags="$configureFlags --with-pygi-overrides-dir=$out/lib/${python.sitePackages}/gi/overrides"
29 '';
30
31 propagatedBuildInputs = [ gst-plugins-base pygobject3 ];
32
33 # Needed for python.buildEnv
34 passthru.pythonPath = [];
35
36 meta = {
37 homepage = http://gstreamer.freedesktop.org;
38
39 description = "Python bindings for GStreamer";
40
41 license = stdenv.lib.licenses.lgpl2Plus;
42 };
43}