From 02ce558dab3d125c473be702d86c3cf46ead66b1 Mon Sep 17 00:00:00 2001 From: SkohTV Date: Wed, 27 May 2026 11:56:17 -0400 Subject: [PATCH] python3Packages.asyncua: 1.1.8 -> 2.0 --- .../python-modules/asyncua/default.nix | 41 ++++++++++++++----- 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/asyncua/default.nix b/pkgs/development/python-modules/asyncua/default.nix index f6e9720a5b0a..bb66c6e5abee 100644 --- a/pkgs/development/python-modules/asyncua/default.nix +++ b/pkgs/development/python-modules/asyncua/default.nix @@ -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 "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 = {