about summary refs log tree commit diff
path: root/pkgs/by-name/co/connman-notify/package.nix
blob: 4b9002441a926c600ac4c0cb07f2a2b47d49e113 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib, fetchFromGitLab, python3Packages, glib, gobject-introspection, wrapGAppsHook3 }:

python3Packages.buildPythonApplication {
  pname = "connman-notify";
  version = "2019-10-05";

  src = fetchFromGitLab {
    owner = "wavexx";
    repo = "connman-notify";
    rev = "24b10a51721b54d932f4cd61ef2756423768c015";
    sha256 = "1k5b5y6114yna2cm0cq82xilicran63hrhlklgv7k3p89057xh8j";
  };

  format = "other";

  nativeBuildInputs = [ gobject-introspection wrapGAppsHook3 ];

  buildInputs = [ glib ];

  pythonPath = with python3Packages; [ dbus-python pygobject3 ];

  strictDeps = false;

  installPhase = ''
    install -D -t $out/bin connman-notify
    install -D -t $out/share/doc README.rst
  '';

  meta = with lib; {
    description = "Desktop notification integration for connman";
    mainProgram = "connman-notify";
    homepage = "https://gitlab.com/wavexx/connman-notify";
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = [ maintainers.romildo ];
  };
}