From 14622349154c73938ac2b385be92518235e92a0d Mon Sep 17 00:00:00 2001 From: Gustavo Araiza <57430880+garaiza-93@users.noreply.github.com> Date: Mon, 6 Mar 2023 14:04:23 -0600 Subject: [PATCH] hue-plus: init at 1.4.5 --- pkgs/applications/misc/hue-plus/default.nix | 42 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/applications/misc/hue-plus/default.nix diff --git a/pkgs/applications/misc/hue-plus/default.nix b/pkgs/applications/misc/hue-plus/default.nix new file mode 100644 index 000000000000..4cb4adcafd68 --- /dev/null +++ b/pkgs/applications/misc/hue-plus/default.nix @@ -0,0 +1,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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 04074f2a09e7..7f0a660e85db 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8397,6 +8397,8 @@ with pkgs; httpx = callPackage ../tools/security/httpx { }; + hue-plus = libsForQt5.callPackage ../applications/misc/hue-plus { }; + hurl = callPackage ../tools/networking/hurl { }; hubicfuse = callPackage ../tools/filesystems/hubicfuse { };