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