anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / tools / audio / mpd-sima / default.nix
blob7752f9d1bf22aed729f13fd3062b824d35b424f4
1 { lib
2 , buildPythonApplication
3 , fetchFromGitLab
4 , python-musicpd
5 , requests}:
7 buildPythonApplication rec {
8   pname = "mpd-sima";
9   version = "0.18.2";
11   src = fetchFromGitLab {
12     owner = "kaliko";
13     repo = "sima";
14      rev = version;
15     hash = "sha256-lMvM1EqS1govhv4B2hJzIg5DFQYgEr4yJJtgOQxnVlY=";
16   };
18   format = "setuptools";
20   propagatedBuildInputs = [
21     requests
22     python-musicpd
23   ];
25   doCheck = true;
27   preCheck = ''
28     export HOME="$(mktemp -d)"
29   '';
31   meta = with lib; {
32     description = "Autoqueuing mpd client";
33     homepage = "https://kaliko.me/mpd-sima/";
34     license = licenses.gpl3Plus;
35     platforms = platforms.linux;
36     maintainers = with lib.maintainers; [ apfelkuchen6 ];
37     mainProgram = "mpd-sima";
38   };