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