summary refs log tree commit diff
path: root/pkgs/development/python-modules/openrazer/daemon.nix
blob: 6c22d3bae5d080f026f344e3b0d2ee706e299764 (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
38
39
40
41
42
43
44
45
46
47
48
49
{ lib
, buildPythonApplication
, isPy3k
, daemonize
, dbus-python
, fetchFromGitHub
, fetchpatch
, gobject-introspection
, gtk3
, makeWrapper
, pygobject3
, pyudev
, setproctitle
, stdenv
, wrapGAppsHook
}:

let
  common = import ./common.nix { inherit stdenv lib fetchFromGitHub; };
in
buildPythonApplication (common // rec {
  pname = "openrazer_daemon";

  disabled = !isPy3k;

  sourceRoot = "source/daemon";

  outputs = [ "out" "man" ];

  nativeBuildInputs = [ makeWrapper wrapGAppsHook ];

  propagatedBuildInputs = [
    daemonize
    dbus-python
    gobject-introspection
    gtk3
    pygobject3
    pyudev
    setproctitle
  ];

  postBuild = ''
    DESTDIR="$out" PREFIX="" make install manpages
  '';

  meta = common.meta // {
    description = "An entirely open source user-space daemon that allows you to manage your Razer peripherals on GNU/Linux";
  };
})