forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / misc / opcua-client-gui / default.nix
blob22669706036597b0024ffd4593dc38f58ae0c430
1 { lib
2 , stdenv
3 , python3Packages
4 , fetchFromGitHub
5 , makeDesktopItem
6 , copyDesktopItems
7 , desktopToDarwinBundle
8 , wrapQtAppsHook
9 }:
11 python3Packages.buildPythonApplication rec {
12   pname = "opcua-client-gui";
13   version = "0.8.4";
15   src = fetchFromGitHub {
16     owner = "FreeOpcUa";
17     repo = "opcua-client-gui";
18     rev = version;
19     hash = "sha256-0BH1Txr3z4a7iFcsfnovmBUreXMvIX2zpZa8QivQVx8=";
20   };
22   nativeBuildInputs = [ copyDesktopItems wrapQtAppsHook ]
23     ++ lib.optionals stdenv.hostPlatform.isDarwin [ desktopToDarwinBundle ];
25   makeWrapperArgs = [
26     "\${qtWrapperArgs[@]}"
27   ];
29   propagatedBuildInputs = with python3Packages; [
30     pyqt5
31     asyncua
32     opcua-widgets
33     numpy
34     pyqtgraph
35   ];
37   #This test uses a deprecated libarby, when updating the package check if the test was updated as well
38   doCheck = false;
40   desktopItems = [
41     (makeDesktopItem {
42       name = "opcua-client";
43       exec = "opcua-client";
44       comment = "OPC UA Client";
45       type = "Application";
46       #no icon because the app dosn't have one
47       desktopName = "opcua-client";
48       terminal = false;
49       categories = [ "Utility" ];
50     })
51   ];
53   meta = with lib; {
54     description = "OPC UA GUI Client";
55     homepage = "https://github.com/FreeOpcUa/opcua-client-gui";
56     platforms = platforms.unix;
57     license = licenses.gpl3Only;
58     maintainers = [ ];
59     mainProgram = "opcua-client";
60   };