nixpkgs/pkgs/misc/opcua-client-gui/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.4 KiB
Nix
Raw Normal View History

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 ]
++ lib.optionals stdenv.isDarwin [ desktopToDarwinBundle ];
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;
maintainers = with maintainers; [ janik ];
2023-11-23 21:09:35 +00:00
mainProgram = "opcua-client";
2023-04-21 15:39:36 +00:00
};
}