Merge pull request #227460 from Janik-Haag/opc-ua

python3Packages.opcua-widgets: init, opcua-client-gui: init
This commit is contained in:
Sandro 2023-05-18 23:47:30 +02:00 committed by GitHub
commit 8850ac82a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 92 additions and 0 deletions

View 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 ];
};
}

View 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 ];
};
}

View file

@ -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
};

View file

@ -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 { };