2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, qt5
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "linien-gui";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
inherit (python3.pkgs.linien-common) src version;
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
sourceRoot = "${src.name}/linien-gui";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
setuptools
|
|
|
|
] ++ [
|
|
|
|
qt5.wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# Makes qt-wayland appear in the qt paths injected by the wrapper - helps users
|
|
|
|
# with `QT_QPA_PLATFORM=wayland` in their environment.
|
|
|
|
buildInputs = [
|
|
|
|
qt5.qtwayland
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
appdirs
|
|
|
|
click
|
|
|
|
pyqtgraph
|
|
|
|
pyqt5
|
|
|
|
superqt
|
|
|
|
linien-client
|
|
|
|
];
|
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Graphical user interface of the Linien spectroscopy lock application";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "linien";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://github.com/linien-org/linien/tree/develop/linien-gui";
|
2024-07-27 06:49:29 +00:00
|
|
|
changelog = "https://github.com/linien-org/linien/blob/v${version}/CHANGELOG.md";
|
2024-01-02 11:29:13 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ fsagbuya doronbehar ];
|
|
|
|
};
|
|
|
|
}
|