2020-03-17 01:30:05 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, stdenv
|
|
|
|
, pkgconfig
|
2020-10-01 23:31:58 +01:00
|
|
|
, python3
|
2020-03-17 01:30:05 +00:00
|
|
|
, pygobject3
|
|
|
|
, gobject-introspection
|
|
|
|
, gst-plugins-base
|
|
|
|
, isPy3k
|
2014-02-02 15:07:03 +00:00
|
|
|
}:
|
|
|
|
|
2020-03-17 01:30:05 +00:00
|
|
|
buildPythonPackage rec {
|
2017-08-13 20:42:30 +01:00
|
|
|
pname = "gst-python";
|
2020-10-01 23:31:58 +01:00
|
|
|
version = "1.18.0";
|
2020-03-17 01:30:05 +00:00
|
|
|
|
2018-06-23 14:27:58 +01:00
|
|
|
format = "other";
|
2014-02-02 15:07:03 +00:00
|
|
|
|
2018-09-05 13:12:02 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2014-02-02 15:07:03 +00:00
|
|
|
src = fetchurl {
|
2020-03-17 01:30:05 +00:00
|
|
|
url = "${meta.homepage}/src/gst-python/${pname}-${version}.tar.xz";
|
2020-10-01 23:31:58 +01:00
|
|
|
sha256 = "0ifx2s2j24sj2w5jm7cxyg1kinnhbxiz4x0qp3gnsjlwbawfigvn";
|
2014-02-02 15:07:03 +00:00
|
|
|
};
|
|
|
|
|
2020-10-01 23:31:58 +01:00
|
|
|
# Python 2.x is not supported.
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2020-03-17 01:30:05 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
2020-10-01 23:31:58 +01:00
|
|
|
python3
|
2020-03-17 01:30:05 +00:00
|
|
|
gobject-introspection
|
|
|
|
gst-plugins-base
|
|
|
|
];
|
2015-09-18 13:24:19 +01:00
|
|
|
|
2020-03-17 01:30:05 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
gst-plugins-base
|
|
|
|
pygobject3
|
|
|
|
];
|
2014-02-02 15:07:03 +00:00
|
|
|
|
2018-04-03 08:36:38 +01:00
|
|
|
mesonFlags = [
|
2020-10-01 23:31:58 +01:00
|
|
|
"-Dpygi-overrides-dir=${placeholder "out"}/${python3.sitePackages}/gi/overrides"
|
2017-09-08 20:03:20 +01:00
|
|
|
];
|
2014-02-02 15:07:03 +00:00
|
|
|
|
2018-09-05 13:12:02 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
# TODO: Meson setup hook does not like buildPythonPackage
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/47390
|
|
|
|
installCheckPhase = "meson test --print-errorlogs";
|
2018-04-03 08:36:38 +01:00
|
|
|
|
2014-02-02 15:07:03 +00:00
|
|
|
meta = {
|
2020-03-17 01:30:05 +00:00
|
|
|
homepage = "https://gstreamer.freedesktop.org";
|
2014-02-02 15:07:03 +00:00
|
|
|
|
|
|
|
description = "Python bindings for GStreamer";
|
|
|
|
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
2014-02-02 15:07:03 +00:00
|
|
|
};
|
|
|
|
}
|