depot/third_party/nixpkgs/pkgs/by-name/li/linien-gui/package.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

47 lines
996 B
Nix

{ lib
, python3
, qt5
}:
python3.pkgs.buildPythonApplication rec {
pname = "linien-gui";
pyproject = true;
inherit (python3.pkgs.linien-common) src version;
sourceRoot = "source/linien-gui";
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";
homepage = "https://github.com/linien-org/linien/tree/develop/linien-gui";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ fsagbuya doronbehar ];
};
}