3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/gst-python/default.nix
Niklas Hambüchen 0672de5b89 gstreamer: 1.16.2 -> 1.18.0
Fixes #98769.

Important changes from https://gstreamer.freedesktop.org/releases/1.18/:

* `gst-validate` was renamed to `gst-devtools` upstream:

    > * the `gst-validate` tarball has been superseded by
    >   the `gst-devtools` tarball for consistency with the git module name.

* `gst-python` is now Python 3 only:

    > * Python 2.x is no longer supported
2020-10-24 02:02:09 +02:00

62 lines
1.1 KiB
Nix

{ buildPythonPackage
, fetchurl
, meson
, ninja
, stdenv
, pkgconfig
, python3
, pygobject3
, gobject-introspection
, gst-plugins-base
, isPy3k
}:
buildPythonPackage rec {
pname = "gst-python";
version = "1.18.0";
format = "other";
outputs = [ "out" "dev" ];
src = fetchurl {
url = "${meta.homepage}/src/gst-python/${pname}-${version}.tar.xz";
sha256 = "0ifx2s2j24sj2w5jm7cxyg1kinnhbxiz4x0qp3gnsjlwbawfigvn";
};
# Python 2.x is not supported.
disabled = !isPy3k;
nativeBuildInputs = [
meson
ninja
pkgconfig
python3
gobject-introspection
gst-plugins-base
];
propagatedBuildInputs = [
gst-plugins-base
pygobject3
];
mesonFlags = [
"-Dpygi-overrides-dir=${placeholder "out"}/${python3.sitePackages}/gi/overrides"
];
doCheck = true;
# TODO: Meson setup hook does not like buildPythonPackage
# https://github.com/NixOS/nixpkgs/issues/47390
installCheckPhase = "meson test --print-errorlogs";
meta = {
homepage = "https://gstreamer.freedesktop.org";
description = "Python bindings for GStreamer";
license = stdenv.lib.licenses.lgpl2Plus;
};
}