1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-05 23:32:35 +03:00
nixpkgs/pkgs/development/python-modules/gst-python/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchurl
, meson
, ninja
, pkg-config
, python
, pygobject3
, gobject-introspection
2022-08-07 01:48:42 +03:00
, gst_all_1
, isPy3k
}:
buildPythonPackage rec {
pname = "gst-python";
version = "1.20.0";
format = "other";
2018-09-05 14:12:02 +02:00
outputs = [ "out" "dev" ];
src = fetchurl {
url = "${meta.homepage}/src/gst-python/${pname}-${version}.tar.xz";
sha256 = "j2e9xWBrozYGxryJbonefc2M9PykWfcTibG2/gdbXlQ=";
};
# Python 2.x is not supported.
disabled = !isPy3k;
2022-08-07 01:48:42 +03:00
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
2022-08-07 01:48:42 +03:00
gst_all_1.gst-plugins-base
];
propagatedBuildInputs = [
2022-08-07 01:48:42 +03:00
gst_all_1.gst-plugins-base
pygobject3
];
mesonFlags = [
"-Dpygi-overrides-dir=${placeholder "out"}/${python.sitePackages}/gi/overrides"
2022-08-07 01:48:42 +03:00
# Exec format error during configure
"-Dpython=${python.pythonForBuild.interpreter}"
];
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; {
homepage = "https://gstreamer.freedesktop.org";
description = "Python bindings for GStreamer";
license = licenses.lgpl2Plus;
};
}