mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
Merge pull request #245113 from sikmir/opcua-client-gui
opcua-client-gui: enable on darwin
This commit is contained in:
commit
8f23952d55
@ -1,4 +1,5 @@
|
|||||||
{ lib
|
{ lib
|
||||||
|
, stdenv
|
||||||
, aiofiles
|
, aiofiles
|
||||||
, aiosqlite
|
, aiosqlite
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
@ -60,6 +61,17 @@ buildPythonPackage rec {
|
|||||||
"asyncua"
|
"asyncua"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
disabledTests = lib.optionals stdenv.isDarwin [
|
||||||
|
# Failed: DID NOT RAISE <class 'asyncio.exceptions.TimeoutError'>
|
||||||
|
"test_publish"
|
||||||
|
# OSError: [Errno 48] error while attempting to bind on address ('127.0.0.1',...
|
||||||
|
"test_anonymous_rejection"
|
||||||
|
"test_certificate_handling_success"
|
||||||
|
"test_encrypted_private_key_handling_success"
|
||||||
|
"test_encrypted_private_key_handling_success_with_cert_props"
|
||||||
|
"test_encrypted_private_key_handling_failure"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "OPC UA / IEC 62541 Client and Server for Python";
|
description = "OPC UA / IEC 62541 Client and Server for Python";
|
||||||
homepage = "https://github.com/FreeOpcUa/opcua-asyncio";
|
homepage = "https://github.com/FreeOpcUa/opcua-asyncio";
|
||||||
|
@ -1,22 +1,32 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, python3
|
, stdenv
|
||||||
|
, python3Packages
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, makeDesktopItem
|
, makeDesktopItem
|
||||||
, copyDesktopItems
|
, copyDesktopItems
|
||||||
|
, desktopToDarwinBundle
|
||||||
|
, wrapQtAppsHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "opcua-client-gui";
|
pname = "opcua-client-gui";
|
||||||
version = "0.8.4";
|
version = "0.8.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "FreeOpcUa";
|
owner = "FreeOpcUa";
|
||||||
repo = pname;
|
repo = "opcua-client-gui";
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-0BH1Txr3z4a7iFcsfnovmBUreXMvIX2zpZa8QivQVx8=";
|
hash = "sha256-0BH1Txr3z4a7iFcsfnovmBUreXMvIX2zpZa8QivQVx8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
nativeBuildInputs = [ copyDesktopItems wrapQtAppsHook ]
|
||||||
|
++ lib.optionals stdenv.isDarwin [ desktopToDarwinBundle ];
|
||||||
|
|
||||||
|
makeWrapperArgs = [
|
||||||
|
"\${qtWrapperArgs[@]}"
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = with python3Packages; [
|
||||||
pyqt5
|
pyqt5
|
||||||
asyncua
|
asyncua
|
||||||
opcua-widgets
|
opcua-widgets
|
||||||
@ -43,7 +53,7 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "OPC UA GUI Client";
|
description = "OPC UA GUI Client";
|
||||||
homepage = "https://github.com/FreeOpcUa/opcua-client-gui";
|
homepage = "https://github.com/FreeOpcUa/opcua-client-gui";
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
license = licenses.gpl3Only;
|
license = licenses.gpl3Only;
|
||||||
maintainers = with maintainers; [ janik ];
|
maintainers = with maintainers; [ janik ];
|
||||||
};
|
};
|
||||||
|
@ -33669,7 +33669,7 @@ with pkgs;
|
|||||||
|
|
||||||
opcr-policy = callPackage ../development/tools/opcr-policy { };
|
opcr-policy = callPackage ../development/tools/opcr-policy { };
|
||||||
|
|
||||||
opcua-client-gui = callPackage ../misc/opcua-client-gui { };
|
opcua-client-gui = libsForQt5.callPackage ../misc/opcua-client-gui { };
|
||||||
|
|
||||||
open-policy-agent = callPackage ../development/tools/open-policy-agent { };
|
open-policy-agent = callPackage ../development/tools/open-policy-agent { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user