hue-plus: migrate to pyproject; use finalAttrs, tag, hash and mainProgram; doCheck (#530676)

This commit is contained in:
Peder Bergebakken Sundt 2026-07-03 19:39:15 +00:00 committed by GitHub
commit fe28d5e7ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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";
};
}
})