about summary refs log tree commit diff
path: root/pkgs/applications/misc/hue-plus/default.nix
blob: 4cb4adcafd68bebd4d75b3f7a93db39f3d39ff93 (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
{ python3Packages
, fetchFromGitHub
, lib
, wrapQtAppsHook
, qtbase }:

python3Packages.buildPythonApplication rec {
  pname = "hue-plus";
  version = "1.4.5";

  src = fetchFromGitHub {
    owner = "kusti8";
    repo = pname;
    rev = "7ce7c4603c6d0ab1da29b0d4080aa05f57bd1760";
    sha256 = "sha256-dDIJXhB3rmKnawOYJHE7WK38b0M5722zA+yLgpEjDyI=";
  };

  buildInputs = [ qtbase ];

  nativeBuildInputs = [ wrapQtAppsHook ];

  propagatedBuildInputs = with python3Packages; [
    pyserial pyqt5 pyaudio appdirs setuptools
  ];

  doCheck = false;
  dontWrapQtApps = true;

  makeWrapperArgs = [
    "\${qtWrapperArgs[@]}"
  ];

  meta = with lib; {
    homepage = "https://github.com/kusti8/hue-plus";
    description = "A Windows and Linux driver in Python for the NZXT Hue+";
    longDescription = ''
      A cross-platform driver in Python for the NZXT Hue+. Supports all functionality except FPS, CPU, and GPU lighting.
    '';
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ garaiza-93 ];
  };
}