Unverified Commit 67595d10 authored by Grimmauld's avatar Grimmauld Committed by GitHub
Browse files

monophony: 3.4.2 -> 4.1.1 (#451380)

parents e987844d 969bd453
Loading
Loading
Loading
Loading
+10 −18
Original line number Diff line number Diff line
@@ -3,37 +3,36 @@
  fetchFromGitLab,
  python3Packages,
  wrapGAppsHook4,
  gst_all_1,
  gobject-introspection,
  yt-dlp,
  gst_all_1,
  libadwaita,
  glib-networking,
  nix-update-script,
}:
python3Packages.buildPythonApplication rec {
  pname = "monophony";
  version = "3.4.2";
  version = "4.1.1";
  pyproject = true;

  src = fetchFromGitLab {
    owner = "zehkira";
    repo = "monophony";
    rev = "v${version}";
    hash = "sha256-D/3yJ1KIXF1rv8iH4+HvfD6N94LzkZGRippZj8nk1nQ=";
    tag = "v${version}";
    hash = "sha256-0/yzOoO9WeArTm9qlL3++rn0EUCJAjmUX2zxClu3LRE=";
  };

  sourceRoot = "${src.name}/source";

  dependencies = with python3Packages; [
    mpris-server
    pygobject3
    mprisify
    requests
    ytmusicapi
  ];

  build-system = with python3Packages; [
    pip
    setuptools
    wheel
    pip
  ];

  nativeBuildInputs = [
@@ -52,14 +51,7 @@ python3Packages.buildPythonApplication rec {
    gstreamer
  ]);

  pythonRelaxDeps = [
    "mpris_server"
    "ytmusicapi"
  ];

  postInstall = ''
    make install prefix=$out
  '';
  postInstall = "make install prefix=$out";

  dontWrapGApps = true;

@@ -74,9 +66,9 @@ python3Packages.buildPythonApplication rec {

  meta = {
    description = "Linux app for streaming music from YouTube";
    longDescription = "Monophony is a free and open source Linux app for streaming music from YouTube. It has no ads and does not require an account.";
    longDescription = "Monophony allows you to stream and download music from YouTube Music without ads, as well as create and import playlists without signing in.";
    homepage = "https://gitlab.com/zehkira/monophony";
    license = lib.licenses.agpl3Plus;
    license = lib.licenses.bsd0;
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ quadradical ];
    mainProgram = "monophony";
+38 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitLab,
  pydbus,
  pygobject3,
  setuptools,
  strenum,
}:
buildPythonPackage rec {
  pname = "mprisify";
  version = "1.0.0";
  pyproject = true;

  src = fetchFromGitLab {
    owner = "zehkira";
    repo = "mprisify";
    tag = "v${version}";
    hash = "sha256-05i3N61cqRgGaBjYOEhxeCSV2wDh9yMaXTvEZ/JGrZo=";
  };

  build-system = [ setuptools ];

  dependencies = [
    pydbus
    pygobject3
    strenum
  ];

  pythonImportsCheck = [ "mprisify" ];

  meta = {
    description = "Python MPRIS server library for Linux media player apps";
    homepage = "https://gitlab.com/zehkira/mprisify";
    license = lib.licenses.agpl3Only;
    maintainers = with lib.maintainers; [ quadradical ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -9786,6 +9786,8 @@ self: super: with self; {
  mpris-server = callPackage ../development/python-modules/mpris-server { };
  mprisify = callPackage ../development/python-modules/mprisify { };
  mpv = callPackage ../development/python-modules/mpv { inherit (pkgs) mpv; };
  mpyq = callPackage ../development/python-modules/mpyq { };