2023-05-24 13:37:59 +00:00
|
|
|
{ pkgs
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pyqt5
|
|
|
|
, asyncua
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "opcua-widgets";
|
|
|
|
version = "0.6.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FreeOpcUa";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-ABJlKYN5H/1k8ynvSTSoJBX12vTTyavuNUAmTJ84mn0=";
|
|
|
|
};
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyqt5
|
|
|
|
asyncua
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
pythonImportsCheck = [ "uawidgets" ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
#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 ];
|
|
|
|
};
|
|
|
|
}
|