1{
2 lib,
3 buildPythonApplication,
4 fetchFromGitLab,
5 python-musicpd,
6 requests,
7 sphinxHook,
8}:
9
10buildPythonApplication rec {
11 pname = "mpd-sima";
12 version = "0.18.2";
13
14 src = fetchFromGitLab {
15 owner = "kaliko";
16 repo = "sima";
17 rev = version;
18 hash = "sha256-lMvM1EqS1govhv4B2hJzIg5DFQYgEr4yJJtgOQxnVlY=";
19 };
20
21 format = "setuptools";
22
23 postPatch = ''
24 sed -i '/intersphinx/d' doc/source/conf.py
25 '';
26
27 nativeBuildInputs = [
28 sphinxHook
29 ];
30
31 sphinxBuilders = [ "man" ];
32
33 propagatedBuildInputs = [
34 requests
35 python-musicpd
36 ];
37
38 doCheck = true;
39
40 preCheck = ''
41 export HOME="$(mktemp -d)"
42 '';
43
44 meta = with lib; {
45 description = "Autoqueuing mpd client";
46 homepage = "https://kaliko.me/mpd-sima/";
47 license = licenses.gpl3Plus;
48 platforms = platforms.linux;
49 maintainers = with lib.maintainers; [ apfelkuchen6 ];
50 mainProgram = "mpd-sima";
51 };
52}