python3Packages.asyncua: 1.1.8 -> 2.0

This commit is contained in:
SkohTV
2026-06-09 11:38:24 -04:00
parent 70d8b1deff
commit 02ce558dab
@@ -3,6 +3,7 @@
stdenv,
aiofiles,
aiosqlite,
anyio,
buildPythonPackage,
cryptography,
fetchFromGitHub,
@@ -20,14 +21,14 @@
buildPythonPackage rec {
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=";
hash = "sha256-mJ4ZUKx4zuprpH6FUrw7MLkekX0RDnzkJscQ4XC7tHE=";
fetchSubmodules = true;
};
@@ -43,6 +44,7 @@ buildPythonPackage rec {
dependencies = [
aiofiles
aiosqlite
anyio
cryptography
pyopenssl
python-dateutil
@@ -59,22 +61,41 @@ 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 = {