21 buildPythonPackage rec {
26 disabled = pythonOlder "3.8";
28 src = fetchFromGitHub {
30 repo = "opcua-asyncio";
31 rev = "refs/tags/v${version}";
32 hash = "sha256-XXjzYDOEBdA4uk0VCzscHrPCY2Lgin0JBAVDdxmSOio=";
33 fetchSubmodules = true;
37 # Workaround hardcoded paths in test
38 # "test_cli_tools_which_require_sigint"
39 substituteInPlace tests/test_tools.py \
40 --replace-fail "tools/" "$out/bin/"
43 build-system = [ setuptools ];
62 pythonImportsCheck = [ "asyncua" ];
66 # Failed: DID NOT RAISE <class 'asyncio.exceptions.TimeoutError'>
69 ++ lib.optionals stdenv.hostPlatform.isDarwin [
70 # OSError: [Errno 48] error while attempting to bind on address ('127.0.0.1',...
71 "test_anonymous_rejection"
72 "test_certificate_handling_success"
73 "test_encrypted_private_key_handling_success"
74 "test_encrypted_private_key_handling_success_with_cert_props"
75 "test_encrypted_private_key_handling_failure"
79 description = "OPC UA / IEC 62541 Client and Server for Python";
80 homepage = "https://github.com/FreeOpcUa/opcua-asyncio";
81 changelog = "https://github.com/FreeOpcUa/opcua-asyncio/releases/tag/v${version}";
82 license = licenses.lgpl3Plus;
83 maintainers = with maintainers; [ harvidsen ];