mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
hue-plus: migrate to pyproject; use finalAttrs, tag, hash and mainProgram; doCheck (#530676)
This commit is contained in:
commit
fe28d5e7ae
1 changed files with 8 additions and 6 deletions
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue