From cd84653b2245019d2c87ffde2863095b5bd800b8 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 16 Mar 2025 01:17:51 +0000 Subject: [PATCH] =?UTF-8?q?python3.pkgs.gst-python:=201.24.10=20=E2=86=92?= =?UTF-8?q?=201.26.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update https://gstreamer.freedesktop.org/releases/1.26/ - Format expression - Add `updateScript` --- .../python-modules/gst-python/default.nix | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/gst-python/default.nix b/pkgs/development/python-modules/gst-python/default.nix index 8b744206d148..3c014b8307c2 100644 --- a/pkgs/development/python-modules/gst-python/default.nix +++ b/pkgs/development/python-modules/gst-python/default.nix @@ -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";