diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 9dc3f83eac1f..be66eb3136a1 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -1096,6 +1096,12 @@ githubId = 1078530; name = "Alexandre Peyroux"; }; + apfelkuchen6 = { + email = "apfelkuchen6@hrnz.li"; + github = "apfelkuchen6"; + githubId = 73002165; + name = "apfelkuchen6"; + }; applePrincess = { email = "appleprincess@appleprincess.io"; github = "applePrincess"; diff --git a/pkgs/development/python-modules/python-musicpd/default.nix b/pkgs/development/python-modules/python-musicpd/default.nix new file mode 100644 index 000000000000..cc4ab6b722f0 --- /dev/null +++ b/pkgs/development/python-modules/python-musicpd/default.nix @@ -0,0 +1,26 @@ +{ lib +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "python-musicpd"; + version = "0.8.0"; + + src = fetchPypi { + inherit pname; + inherit version; + sha256 = "sha256-5Br4rZO1c/pPmAZ/UecYjuVLttR8R+xeReKsc/xnaeI="; + }; + + format = "setuptools"; + + doCheck = true; + + meta = with lib; { + description = "An MPD (Music Player Daemon) client library written in pure Python."; + homepage = "https://gitlab.com/kaliko/python-musicpd"; + license = licenses.lgpl3Plus; + maintainers = with lib.maintainers; [ apfelkuchen6 ]; + }; +} diff --git a/pkgs/tools/audio/mpd-sima/default.nix b/pkgs/tools/audio/mpd-sima/default.nix new file mode 100644 index 000000000000..0da82ea0b9aa --- /dev/null +++ b/pkgs/tools/audio/mpd-sima/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonApplication +, fetchFromGitLab +, python-musicpd +, requests}: + +buildPythonApplication rec { + pname = "mpd-sima"; + version = "0.18.2"; + + src = fetchFromGitLab { + owner = "kaliko"; + repo = "sima"; + rev = version; + sha256 = "sha256-lMvM1EqS1govhv4B2hJzIg5DFQYgEr4yJJtgOQxnVlY="; + }; + + format = "setuptools"; + + propagatedBuildInputs = [ + requests + python-musicpd + ]; + + doCheck = true; + + preCheck = '' + export HOME="$(mktemp -d)" + ''; + + meta = with lib; { + description = "An autoqueuing mpd client"; + homepage = "https://kaliko.me/mpd-sima/"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = with lib.maintainers; [ apfelkuchen6 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2cfae4d53891..0621e6453648 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5301,6 +5301,8 @@ with pkgs; mpd-mpris = callPackage ../tools/audio/mpd-mpris { }; + mpd-sima = python3Packages.callPackage ../tools/audio/mpd-sima { }; + mpris-scrobbler = callPackage ../tools/audio/mpris-scrobbler { }; mq-cli = callPackage ../tools/system/mq-cli { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 21e75c132962..1608d7d86588 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9463,6 +9463,8 @@ self: super: with self; { python-multipart = callPackage ../development/python-modules/python-multipart { }; + python-musicpd = callPackage ../development/python-modules/python-musicpd { }; + python-mystrom = callPackage ../development/python-modules/python-mystrom { }; python-nest = callPackage ../development/python-modules/python-nest { };