2023-04-21 15:39:36 +00:00
|
|
|
{ lib
|
2023-07-23 23:17:59 +00:00
|
|
|
, stdenv
|
|
|
|
, python3Packages
|
2023-04-21 15:39:36 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, makeDesktopItem
|
|
|
|
, copyDesktopItems
|
2023-07-23 23:17:59 +00:00
|
|
|
, desktopToDarwinBundle
|
|
|
|
, wrapQtAppsHook
|
2023-04-21 15:39:36 +00:00
|
|
|
}:
|
|
|
|
|
2023-07-23 23:17:59 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2023-04-21 15:39:36 +00:00
|
|
|
pname = "opcua-client-gui";
|
|
|
|
version = "0.8.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FreeOpcUa";
|
2023-07-23 23:17:59 +00:00
|
|
|
repo = "opcua-client-gui";
|
2023-04-21 15:39:36 +00:00
|
|
|
rev = version;
|
|
|
|
hash = "sha256-0BH1Txr3z4a7iFcsfnovmBUreXMvIX2zpZa8QivQVx8=";
|
|
|
|
};
|
|
|
|
|
2023-07-23 23:17:59 +00:00
|
|
|
nativeBuildInputs = [ copyDesktopItems wrapQtAppsHook ]
|
2024-09-24 15:50:49 +00:00
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ desktopToDarwinBundle ];
|
2023-07-23 23:17:59 +00:00
|
|
|
|
|
|
|
makeWrapperArgs = [
|
|
|
|
"\${qtWrapperArgs[@]}"
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2023-04-21 15:39:36 +00:00
|
|
|
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";
|
2023-07-23 23:17:59 +00:00
|
|
|
platforms = platforms.unix;
|
2023-04-21 15:39:36 +00:00
|
|
|
license = licenses.gpl3Only;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2023-11-23 21:09:35 +00:00
|
|
|
mainProgram = "opcua-client";
|
2023-04-21 15:39:36 +00:00
|
|
|
};
|
|
|
|
}
|