btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / me / meteo-qt / package.nix
blob33df8b4095b5d49442930678516627c3a2c2b073
2   lib,
3   python3Packages,
4   fetchFromGitHub,
5   qt5,
6 }:
8 python3Packages.buildPythonApplication rec {
9   pname = "meteo-qt";
10   version = "3.4";
11   format = "setuptools";
13   src = fetchFromGitHub {
14     owner = "dglent";
15     repo = "meteo-qt";
16     rev = "refs/tags/v${version}";
17     hash = "sha256-J9R6UGfj3vaPfn0vmjeRMsHryc/1pxoKyIE9wteVYbY=";
18   };
20   nativeBuildInputs = [
21     qt5.qttools
22     qt5.wrapQtAppsHook
23   ];
25   build-system = with python3Packages; [ sip ];
27   dependencies = with python3Packages; [
28     lxml
29     pyqt5
30   ];
32   pythonImportsCheck = [ "meteo_qt" ];
34   makeWrapperArgs = [ "\${qtWrapperArgs[@]}" ];
36   meta = {
37     description = "System tray application for weather status information";
38     homepage = "https://github.com/dglent/meteo-qt";
39     changelog = "https://github.com/dglent/meteo-qt/blob/${src.rev}/CHANGELOG";
40     license = lib.licenses.gpl3Only;
41     maintainers = with lib.maintainers; [ linuxissuper ];
42     mainProgram = "meteo-qt";
43     platforms = lib.platforms.linux;
44   };