1{ fetchurl, stdenv, pkgconfig, python, pygobject3
2, gst-plugins-base, ncurses
3}:
4
5stdenv.mkDerivation rec {
6 pname = "gst-python";
7 version = "1.12.3";
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 = "19rb06x2m7103zwfm0plxx95gb8bp01ng04h4q9k6ii9q7g2kxf3";
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 configureFlags = [
28 "--with-pygi-overrides-dir=$(out)/${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 = https://gstreamer.freedesktop.org;
38
39 description = "Python bindings for GStreamer";
40
41 license = stdenv.lib.licenses.lgpl2Plus;
42 };
43}