Unverified Commit ffe9c8e5 authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

mopidy: include the PipeWire GStreamer plugin (#355207)

parents c9428444 9cdc8770
Loading
Loading
Loading
Loading
+33 −14
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, pythonPackages, wrapGAppsNoGuiHook
, gst_all_1, glib-networking, gobject-introspection
{
  lib,
  stdenv,
  fetchFromGitHub,
  pythonPackages,
  wrapGAppsNoGuiHook,
  gst_all_1,
  glib-networking,
  gobject-introspection,
  pipewire,
}:

pythonPackages.buildPythonApplication rec {
@@ -24,16 +32,21 @@ pythonPackages.buildPythonApplication rec {
    gst-plugins-rs
  ];

  propagatedBuildInputs = [
  propagatedBuildInputs =
    [
      gobject-introspection
  ] ++ (with pythonPackages; [
    ]
    ++ (
      with pythonPackages;
      [
        gst-python
        pygobject3
        pykka
        requests
        setuptools
        tornado
    ] ++ lib.optional (!stdenv.hostPlatform.isDarwin) dbus-python
      ]
      ++ lib.optional (!stdenv.hostPlatform.isDarwin) dbus-python
    );

  propagatedNativeBuildInputs = [
@@ -43,6 +56,12 @@ pythonPackages.buildPythonApplication rec {
  # There are no tests
  doCheck = false;

  preFixup = ''
    gappsWrapperArgs+=(
      --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "${pipewire}/lib/gstreamer-1.0"
    )
  '';

  meta = with lib; {
    homepage = "https://www.mopidy.com/";
    description = "Extensible music server that plays music from local disk, Spotify, SoundCloud, and more";