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 {
pname = "monophony";
version = "2.15.0";
pyproject = false;
version = "3.3.3";
pyproject = true;
sourceRoot = "${src.name}/source";
src = fetchFromGitLab {
owner = "zehkira";
repo = "monophony";
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
pygobject3
ytmusicapi
@ -52,10 +53,11 @@ python3Packages.buildPythonApplication rec {
gstreamer
]);
# Makefile only contains `install`
dontBuild = true;
pythonRelaxDeps = [ "mpris_server" ];
installFlags = [ "prefix=$(out)" ];
postInstall = ''
make install prefix=$out
'';
dontWrapGApps = true;
@ -68,13 +70,13 @@ python3Packages.buildPythonApplication rec {
passthru.updateScript = nix-update-script { };
meta = with lib; {
homepage = "https://gitlab.com/zehkira/monophony";
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.";
license = licenses.agpl3Plus;
homepage = "https://gitlab.com/zehkira/monophony";
license = lib.licenses.agpl3Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ quadradical ];
mainProgram = "monophony";
platforms = platforms.linux;
maintainers = with maintainers; [ quadradical ];
};
}

View file

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