1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-21 17:01:10 +03:00

monophony: 2.15.0 -> 3.3.3 (#410739)

This commit is contained in:
Jonas Heinrich 2025-05-25 23:46:40 +02:00 committed by GitHub
commit b57f6a25aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 24 additions and 28 deletions

View file

@ -12,18 +12,19 @@
}: }:
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "monophony"; pname = "monophony";
version = "2.15.0"; version = "3.3.3";
pyproject = false; pyproject = true;
sourceRoot = "${src.name}/source";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "zehkira"; owner = "zehkira";
repo = "monophony"; repo = "monophony";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-fC+XXOGBpG5pIQW1tCNtQaptBCyLM+YGgsZLjWrMoDA="; hash = "sha256-ET0cygX/r/YXGWpPU01FnBoLRtjo1ddXEiVIva71aE8=";
}; };
pythonPath = with python3Packages; [ sourceRoot = "${src.name}/source";
dependencies = with python3Packages; [
mpris-server mpris-server
pygobject3 pygobject3
ytmusicapi ytmusicapi
@ -52,10 +53,11 @@ python3Packages.buildPythonApplication rec {
gstreamer gstreamer
]); ]);
# Makefile only contains `install` pythonRelaxDeps = [ "mpris_server" ];
dontBuild = true;
installFlags = [ "prefix=$(out)" ]; postInstall = ''
make install prefix=$out
'';
dontWrapGApps = true; dontWrapGApps = true;
@ -68,13 +70,13 @@ python3Packages.buildPythonApplication rec {
passthru.updateScript = nix-update-script { }; passthru.updateScript = nix-update-script { };
meta = with lib; { meta = {
homepage = "https://gitlab.com/zehkira/monophony";
description = "Linux app for streaming music from YouTube"; 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 is a free and open source Linux app for streaming music from YouTube. It has no ads and does not require an account.";
license = licenses.agpl3Plus; homepage = "https://gitlab.com/zehkira/monophony";
license = lib.licenses.agpl3Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ quadradical ];
mainProgram = "monophony"; mainProgram = "monophony";
platforms = platforms.linux;
maintainers = with maintainers; [ quadradical ];
}; };
} }

View file

@ -7,44 +7,38 @@
pygobject3, pygobject3,
unidecode, unidecode,
setuptools, setuptools,
strenum,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "mpris-server"; pname = "mpris-server";
version = "0.4.2"; version = "0.9.6";
pyproject = true; pyproject = true;
src = fetchPypi { src = fetchPypi {
pname = "mpris_server"; pname = "mpris_server";
inherit version; inherit version;
hash = "sha256-p3nM80fOMtRmeKvOXuX40Fu9xH8gPgYyneXbUS678fE="; hash = "sha256-T0ZeDQiYIAhKR8aw3iv3rtwzc+R0PTQuIh6+Hi4rIHQ=";
}; };
nativeBuildInputs = [ build-system = [ setuptools ];
setuptools
];
propagatedBuildInputs = [ dependencies = [
emoji emoji
pydbus pydbus
pygobject3 pygobject3
strenum
unidecode unidecode
]; ];
pythonRelaxDeps = [ "emoji" ];
pythonImportsCheck = [ "mpris_server" ]; pythonImportsCheck = [ "mpris_server" ];
# upstream has no tests # upstream has no tests
doCheck = false; doCheck = false;
# update doesn't support python311 and monophony, the only consumer requires meta = {
# 0.4.2
passthru.skipBulkUpdate = true;
meta = with lib; {
description = "Publish a MediaPlayer2 MPRIS device to D-Bus"; description = "Publish a MediaPlayer2 MPRIS device to D-Bus";
homepage = "https://pypi.org/project/mpris-server/"; homepage = "https://pypi.org/project/mpris-server/";
license = licenses.agpl3Only; license = lib.licenses.agpl3Only;
maintainers = with maintainers; [ quadradical ]; maintainers = with lib.maintainers; [ quadradical ];
}; };
} }