about summary refs log tree commit diff
path: root/pkgs/misc
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2023-05-18 23:47:30 +0200
committerGitHub <noreply@github.com>2023-05-18 23:47:30 +0200
commit8850ac82a378c2e72e0ca88ae9d5b106858d1938 (patch)
treeac5ca94975c81cb15ef1cd8f6722a9eb906503da /pkgs/misc
parent58f987450c77eff0fd886989dbb3240a0fd1d702 (diff)
parent3ab939dd0f10d33eeb8f6bd15d1e952fcffc01e6 (diff)
Merge pull request #227460 from Janik-Haag/opc-ua
python3Packages.opcua-widgets: init, opcua-client-gui: init
Diffstat (limited to 'pkgs/misc')
-rw-r--r--pkgs/misc/opcua-client-gui/default.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/misc/opcua-client-gui/default.nix b/pkgs/misc/opcua-client-gui/default.nix
new file mode 100644
index 0000000000000..2c684060758f4
--- /dev/null
+++ b/pkgs/misc/opcua-client-gui/default.nix
@@ -0,0 +1,50 @@
+{ lib
+, python3
+, fetchFromGitHub
+, makeDesktopItem
+, copyDesktopItems
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "opcua-client-gui";
+  version = "0.8.4";
+
+  src = fetchFromGitHub {
+    owner = "FreeOpcUa";
+    repo = pname;
+    rev = version;
+    hash = "sha256-0BH1Txr3z4a7iFcsfnovmBUreXMvIX2zpZa8QivQVx8=";
+  };
+
+  propagatedBuildInputs = with python3.pkgs; [
+    pyqt5
+    asyncua
+    opcua-widgets
+    numpy
+    pyqtgraph
+  ];
+
+  #This test uses a deprecated libarby, when updating the package check if the test was updated as well
+  doCheck = false;
+
+  desktopItems = [
+    (makeDesktopItem {
+      name = "opcua-client";
+      exec = "opcua-client";
+      comment = "OPC UA Client";
+      type = "Application";
+      #no icon because the app dosn't have one
+      desktopName = "opcua-client";
+      terminal = false;
+      categories = [ "Utility" ];
+    })
+  ];
+
+  meta = with lib; {
+    description = "OPC UA GUI Client";
+    homepage = "https://github.com/FreeOpcUa/opcua-client-gui";
+    platforms = platforms.linux;
+    license = licenses.gpl3Only;
+    maintainers = with maintainers; [ janik ];
+  };
+}