diff --git a/pkgs/by-name/hu/hue-plus/package.nix b/pkgs/by-name/hu/hue-plus/package.nix index c229d5df7038..e0e3c2b609e9 100644 --- a/pkgs/by-name/hu/hue-plus/package.nix +++ b/pkgs/by-name/hu/hue-plus/package.nix @@ -5,16 +5,18 @@ libsForQt5, }: -python3Packages.buildPythonApplication { +python3Packages.buildPythonApplication (finalAttrs: { pname = "hue-plus"; version = "1.4.5"; - format = "setuptools"; + pyproject = true; + + build-system = with python3Packages; [ setuptools ]; src = fetchFromGitHub { owner = "kusti8"; repo = "hue-plus"; - rev = "7ce7c4603c6d0ab1da29b0d4080aa05f57bd1760"; - sha256 = "sha256-dDIJXhB3rmKnawOYJHE7WK38b0M5722zA+yLgpEjDyI="; + tag = "v.${finalAttrs.version}"; # Only the latest tag uses a . between v and 1. + hash = "sha256-dDIJXhB3rmKnawOYJHE7WK38b0M5722zA+yLgpEjDyI="; }; buildInputs = [ libsForQt5.qtbase ]; @@ -29,7 +31,6 @@ python3Packages.buildPythonApplication { setuptools ]; - doCheck = false; dontWrapQtApps = true; makeWrapperArgs = [ @@ -44,5 +45,6 @@ python3Packages.buildPythonApplication { ''; license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ garaiza-93 ]; + mainProgram = "hue"; }; -} +})