Merge pull request #219608 from apfelkuchen6/mpd-sima

mpd-sima: init at 0.18.2
This commit is contained in:
Ilan Joselevich 2023-03-07 22:06:23 +02:00 committed by GitHub
commit 3be1b471ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 74 additions and 0 deletions

View File

@ -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";

View File

@ -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 ];
};
}

View File

@ -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 ];
};
}

View File

@ -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 { };

View File

@ -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 { };