summary refs log tree commit diff
path: root/pkgs/development/libraries/gstreamer/legacy/gst-python/default.nix
blob: c8414a7b681be2989bf72d936e21afd1852c726a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ fetchurl, stdenv, pkgconfig, python2Packages, gstreamer, gst-plugins-base
}:

let
  inherit (python2Packages) python pygobject2;
in stdenv.mkDerivation rec {
  name = "gst-python-0.10.22";

  src = fetchurl {
    urls = [
      "${meta.homepage}/src/gst-python/${name}.tar.bz2"
      "mirror://gentoo/distfiles/${name}.tar.bz2"
      ];
    sha256 = "0y1i4n5m1diljqr9dsq12anwazrhbs70jziich47gkdwllcza9lg";
  };

  hardeningDisable = [ "bindnow" ];

  # Need to disable the testFake test case due to bug in pygobject.
  # See https://bugzilla.gnome.org/show_bug.cgi?id=692479
  patches = [ ./disable-testFake.patch ];

  buildInputs =
    [ pkgconfig gst-plugins-base pygobject2 ]
    ;

  propagatedBuildInputs = [ gstreamer python ];

  meta = {
    homepage = https://gstreamer.freedesktop.org;

    description = "Python bindings for GStreamer";

    license = stdenv.lib.licenses.lgpl2Plus;
    platforms = stdenv.lib.platforms.unix;
  };
}