base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / li / linien-gui / package.nix
blob374bb6951dc3696816602553e70e12ac91af49fd
1 { lib
2 , python3
3 , qt5
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "linien-gui";
8   pyproject = true;
10   inherit (python3.pkgs.linien-common) src version;
12   sourceRoot = "${src.name}/linien-gui";
14   nativeBuildInputs = with python3.pkgs; [
15     setuptools
16   ] ++ [
17     qt5.wrapQtAppsHook
18   ];
20   # Makes qt-wayland appear in the qt paths injected by the wrapper - helps users
21   # with `QT_QPA_PLATFORM=wayland` in their environment.
22   buildInputs = [
23     qt5.qtwayland
24   ];
26   propagatedBuildInputs = with python3.pkgs; [
27     appdirs
28     click
29     pyqtgraph
30     pyqt5
31     superqt
32     linien-client
33     requests
34   ];
36   dontWrapQtApps = true;
38   preFixup = ''
39     makeWrapperArgs+=("''${qtWrapperArgs[@]}")
40   '';
42   meta = with lib; {
43     description = "Graphical user interface of the Linien spectroscopy lock application";
44     mainProgram = "linien";
45     homepage = "https://github.com/linien-org/linien/tree/develop/linien-gui";
46     changelog = "https://github.com/linien-org/linien/blob/v${version}/CHANGELOG.md";
47     license = licenses.gpl3Plus;
48     maintainers = with maintainers; [ fsagbuya doronbehar ];
49   };