python3.pkgs.gst-python: 1.24.10 → 1.26.0
- Update https://gstreamer.freedesktop.org/releases/1.26/ - Format expression - Add `updateScript`
This commit is contained in:
@@ -11,11 +11,12 @@
|
||||
gobject-introspection,
|
||||
gst_all_1,
|
||||
isPy3k,
|
||||
directoryListingUpdater,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gst-python";
|
||||
version = "1.24.10";
|
||||
version = "1.26.0";
|
||||
|
||||
format = "other";
|
||||
|
||||
@@ -25,8 +26,8 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://gstreamer.freedesktop.org/src/gst-python/${pname}-${version}.tar.xz";
|
||||
hash = "sha256-E1vPi28UaLwx5WYECf6O04EJ8B3sRHQ1FKovprOGMwk";
|
||||
url = "https://gstreamer.freedesktop.org/src/gst-python/gst-python-${version}.tar.xz";
|
||||
hash = "sha256-5QRqBdd6uxVnGtAc0ZCNF9YuWgb114Qb5DQq3io/uNs=";
|
||||
};
|
||||
|
||||
# Python 2.x is not supported.
|
||||
@@ -42,21 +43,34 @@ buildPythonPackage rec {
|
||||
gst_all_1.gst-plugins-base
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
# for gstreamer-analytics-1.0
|
||||
gst_all_1.gst-plugins-bad
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
gst_all_1.gst-plugins-base
|
||||
pygobject3
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
gst_all_1.gst-rtsp-server
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
"-Dpygi-overrides-dir=${placeholder "out"}/${python.sitePackages}/gi/overrides"
|
||||
# Exec format error during configure
|
||||
"-Dpython=${python.pythonOnBuildForHost.interpreter}"
|
||||
"-Dpython-exe=${python.pythonOnBuildForHost.interpreter}"
|
||||
];
|
||||
|
||||
# TODO: Meson setup hook does not like buildPythonPackage
|
||||
# https://github.com/NixOS/nixpkgs/issues/47390
|
||||
installCheckPhase = "meson test --print-errorlogs";
|
||||
|
||||
passthru = {
|
||||
updateScript = directoryListingUpdater { };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://gstreamer.freedesktop.org";
|
||||
description = "Python bindings for GStreamer";
|
||||
|
||||
Reference in New Issue
Block a user