nixpkgs/pkgs/misc/opcua-client-gui/default.nix
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

61 lines
1.4 KiB
Nix

{ lib
, stdenv
, python3Packages
, fetchFromGitHub
, makeDesktopItem
, copyDesktopItems
, desktopToDarwinBundle
, wrapQtAppsHook
}:
python3Packages.buildPythonApplication rec {
pname = "opcua-client-gui";
version = "0.8.4";
src = fetchFromGitHub {
owner = "FreeOpcUa";
repo = "opcua-client-gui";
rev = version;
hash = "sha256-0BH1Txr3z4a7iFcsfnovmBUreXMvIX2zpZa8QivQVx8=";
};
nativeBuildInputs = [ copyDesktopItems wrapQtAppsHook ]
++ lib.optionals stdenv.isDarwin [ desktopToDarwinBundle ];
makeWrapperArgs = [
"\${qtWrapperArgs[@]}"
];
propagatedBuildInputs = with python3Packages; [
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.unix;
license = licenses.gpl3Only;
maintainers = [ ];
mainProgram = "opcua-client";
};
}