2021-01-24 00:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-03-17 01:30:05 +00:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-25 08:26:54 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2020-10-01 22:31:58 +00: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 19:42:30 +00:00
|
|
|
pname = "gst-python";
|
2021-04-28 23:01:34 +00:00
|
|
|
version = "1.18.4";
|
2020-03-17 01:30:05 +00:00
|
|
|
|
2018-06-23 13:27:58 +00:00
|
|
|
format = "other";
|
2014-02-02 15:07:03 +00:00
|
|
|
|
2018-09-05 12:12:02 +00: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";
|
2021-04-28 23:01:34 +00:00
|
|
|
sha256 = "13h9qzfz8s1gyj2ar9q2gf5346sgdv6jv8hj7aw0hpl2gs5f0s6b";
|
2014-02-02 15:07:03 +00:00
|
|
|
};
|
|
|
|
|
2020-10-01 22:31:58 +00:00
|
|
|
# Python 2.x is not supported.
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2020-03-17 01:30:05 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2020-10-01 22:31:58 +00:00
|
|
|
python3
|
2020-03-17 01:30:05 +00:00
|
|
|
gobject-introspection
|
|
|
|
gst-plugins-base
|
|
|
|
];
|
2015-09-18 12:24:19 +00: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 07:36:38 +00:00
|
|
|
mesonFlags = [
|
2020-10-01 22:31:58 +00:00
|
|
|
"-Dpygi-overrides-dir=${placeholder "out"}/${python3.sitePackages}/gi/overrides"
|
2017-09-08 19:03:20 +00:00
|
|
|
];
|
2014-02-02 15:07:03 +00:00
|
|
|
|
2018-09-05 12:12:02 +00: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 07:36:38 +00:00
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
meta = with lib; {
|
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";
|
2021-01-24 00:29:22 +00:00
|
|
|
license = licenses.lgpl2Plus;
|
2014-02-02 15:07:03 +00:00
|
|
|
};
|
|
|
|
}
|