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.

51 lines
1.1 KiB
Nix
Raw Normal View History

2023-04-21 15:39:36 +00:00
{ 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 ];
};
}