python3Packages.asyncua: 1.1.8 -> 2.0 (#524914)

This commit is contained in:
Fabian Affolter
2026-06-09 20:35:36 +00:00
committed by GitHub
@@ -3,6 +3,7 @@
stdenv,
aiofiles,
aiosqlite,
anyio,
buildPythonPackage,
cryptography,
fetchFromGitHub,
@@ -18,16 +19,16 @@
typing-extensions,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "asyncua";
version = "1.1.8";
version = "2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "FreeOpcUa";
repo = "opcua-asyncio";
tag = "v${version}";
hash = "sha256-0eay/NlWn0I2oF0fTln9/d4y31zGfAj9ph3bWkgd8Nk=";
tag = "v${finalAttrs.version}";
hash = "sha256-mJ4ZUKx4zuprpH6FUrw7MLkekX0RDnzkJscQ4XC7tHE=";
fetchSubmodules = true;
};
@@ -43,6 +44,7 @@ buildPythonPackage rec {
dependencies = [
aiofiles
aiosqlite
anyio
cryptography
pyopenssl
python-dateutil
@@ -59,29 +61,48 @@ buildPythonPackage rec {
pythonImportsCheck = [ "asyncua" ];
# PermissionError: [Errno 1] Operation not permitted
__darwinAllowLocalNetworking = true;
disabledTests = [
# Failed: DID NOT RAISE <class 'asyncio.exceptions.TimeoutError'>
"test_publish"
# KeyError: 'Simple'
"test_full_simple"
]
++ lib.optionals (pythonAtLeast "3.13") [
# dbm.sqlite3.error: SQLite objects created in a thread can only be used in that same thread.
# The object was created in thread id 140737220687552 and this is thread id 140737343690560.
"test_runTest"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# 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"
# error while attempting to bind on address
"test_failover_warm"
"test_client_admin"
"test_client_user"
"test_client_anonymous"
"test_x509identity_user"
"test_x509identity_anonymous"
"test_client_user_x509identity_admin"
];
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
"tests/test_callback_service.py"
"tests/test_client_cert_chain.py"
"tests/test_crypto_connect.py"
"tests/test_crypto_connect.py"
"tests/test_gen_certificates.py"
"tests/test_password.py"
"tests/test_permissions.py"
"tests/test_pubsub.py"
"tests/test_sync.py"
"tests/test_truststore.py"
"tests/test_subscriptions.py"
];
meta = {
description = "OPC UA / IEC 62541 Client and Server for Python";
homepage = "https://github.com/FreeOpcUa/opcua-asyncio";
changelog = "https://github.com/FreeOpcUa/opcua-asyncio/releases/tag/${src.tag}";
changelog = "https://github.com/FreeOpcUa/opcua-asyncio/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ harvidsen ];
};
}
})