Files
nixpkgs/pkgs/development/python-modules/gst-python/default.nix
T

61 lines
1.1 KiB
Nix
Raw Normal View History

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