Merge pull request #227460 from Janik-Haag/opc-ua
python3Packages.opcua-widgets: init, opcua-client-gui: init
This commit is contained in:
commit
8850ac82a3
4 changed files with 92 additions and 0 deletions
38
pkgs/development/python-modules/opcua-widgets/default.nix
Normal file
38
pkgs/development/python-modules/opcua-widgets/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ pkgs
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, pyqt5
|
||||
, asyncua
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "opcua-widgets";
|
||||
version = "0.6.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "FreeOpcUa";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-ABJlKYN5H/1k8ynvSTSoJBX12vTTyavuNUAmTJ84mn0=";
|
||||
};
|
||||
|
||||
disabled = pythonOlder "3.10";
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyqt5
|
||||
asyncua
|
||||
];
|
||||
|
||||
pythonImportChecks = [ "opcua-widgets" ];
|
||||
|
||||
#This test is broken, when updating this package check if the test was fixed.
|
||||
doCheck = false;
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Common widgets for opcua-modeler og opcua-client-gui";
|
||||
homepage = "https://github.com/FreeOpcUa/opcua-widgets";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ janik ];
|
||||
};
|
||||
}
|
50
pkgs/misc/opcua-client-gui/default.nix
Normal file
50
pkgs/misc/opcua-client-gui/default.nix
Normal file
|
@ -0,0 +1,50 @@
|
|||
{ 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 ];
|
||||
};
|
||||
}
|
|
@ -32712,6 +32712,8 @@ with pkgs;
|
|||
|
||||
opcr-policy = callPackage ../development/tools/opcr-policy { };
|
||||
|
||||
opcua-client-gui = callPackage ../misc/opcua-client-gui { };
|
||||
|
||||
open-policy-agent = callPackage ../development/tools/open-policy-agent {
|
||||
buildGoModule = buildGo119Module; # go 1.20 build failure
|
||||
};
|
||||
|
|
|
@ -6969,6 +6969,8 @@ self: super: with self; {
|
|||
|
||||
oocsi = callPackage ../development/python-modules/oocsi { };
|
||||
|
||||
opcua-widgets = callPackage ../development/python-modules/opcua-widgets { };
|
||||
|
||||
open-garage = callPackage ../development/python-modules/open-garage { };
|
||||
|
||||
open-meteo = callPackage ../development/python-modules/open-meteo { };
|
||||
|
|
Loading…
Reference in a new issue