1{ lib
2, autoreconfHook
3, fetchFromGitHub
4, glib
5, gobject-introspection
6, intltool
7, libnotify
8, python3
9, wrapGAppsHook
10}:
11
12python3.pkgs.buildPythonApplication rec {
13 pname = "mpDris2";
14 version = "0.9.1";
15 format = "other";
16
17 src = fetchFromGitHub {
18 owner = "eonpatapon";
19 repo = pname;
20 rev = version;
21 sha256 = "sha256-1Y6K3z8afUXeKhZzeiaEF3yqU0Ef7qdAj9vAkRlD2p8=";
22 };
23
24 preConfigure = ''
25 intltoolize -f
26 '';
27
28 nativeBuildInputs = [
29 autoreconfHook
30 gobject-introspection
31 intltool
32 wrapGAppsHook
33 ];
34
35 buildInputs = [
36 glib
37 libnotify
38 ];
39
40 propagatedBuildInputs = with python3.pkgs; [
41 dbus-python
42 mpd2
43 mutagen
44 pygobject3
45 ];
46
47 meta = with lib; {
48 description = "MPRIS 2 support for mpd";
49 homepage = "https://github.com/eonpatapon/mpDris2/";
50 license = licenses.gpl3;
51 maintainers = with maintainers; [ ];
52 platforms = platforms.unix;
53 };
54}