Unverified Commit 814ba560 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

mopidy-argos: init at version 1.15.0 (#273471)

parents bacf4fb3 0fd843ca
Loading
Loading
Loading
Loading
+59 −0
Original line number Diff line number Diff line
{
  stdenv,
  lib,
  python3Packages,
  fetchFromGitHub,
  pkg-config,
  meson,
  ninja,
  appstream-glib,
  desktop-file-utils,
  wrapGAppsHook3,
  gobject-introspection,
}:
python3Packages.buildPythonApplication rec {
  pname = "mopidy-argos";
  version = "1.15.0";
  pyproject = false; # Built with meson

  src = fetchFromGitHub {
    owner = "orontee";
    repo = "argos";
    tag = "v${version}";
    hash = "sha256-fHdaYFq38t4uzpVD4qoAeVm5yWgj2O7hy4LDgZ1bZj4=";
  };
  postPatch = ''
    patchShebangs build-aux/meson/postinstall.py
  '';

  nativeBuildInputs = [
    pkg-config
    meson
    ninja
    appstream-glib
    gobject-introspection
    desktop-file-utils
    wrapGAppsHook3
  ];

  dependencies = with python3Packages; [
    aiohttp
    pycairo
    pygobject3
    pyxdg
    zeroconf
  ];

  dontWrapGApps = true;
  preFixup = ''
    makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
  '';

  meta = {
    homepage = "https://github.com/orontee/argos";
    description = "Gtk front-end to control a Mopidy server";
    license = lib.licenses.gpl3Plus;
    maintainers = [ lib.maintainers.hufman ];
    mainProgram = "argos";
  };
}