Merge pull request #196552 from harvidsen/python-asyncua-init

authored by Sandro and committed by GitHub dfc8fe37 03b92499

+68
+66
pkgs/development/python-modules/asyncua/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , aiosqlite 5 + , aiofiles 6 + , pytz 7 + , python-dateutil 8 + , sortedcontainers 9 + , cryptography 10 + , typing-extensions 11 + , importlib-metadata 12 + , pytestCheckHook 13 + , pytest-asyncio 14 + , pytest-mock 15 + , asynctest 16 + , pythonOlder 17 + }: 18 + 19 + buildPythonPackage rec { 20 + pname = "asyncua"; 21 + version = "1.0.0"; 22 + format = "setuptools"; 23 + 24 + disabled = pythonOlder "3.7"; 25 + 26 + src = fetchFromGitHub { 27 + owner = "FreeOpcUa"; 28 + repo = "opcua-asyncio"; 29 + rev = "v${version}"; 30 + hash = "sha256-wBtI3ZlsvOkNvl/q0X9cm2hNRUBW1oB/kZOo8lqo4dQ="; 31 + }; 32 + 33 + propagatedBuildInputs = [ 34 + aiosqlite 35 + aiofiles 36 + pytz 37 + python-dateutil 38 + sortedcontainers 39 + cryptography 40 + typing-extensions 41 + ] ++ lib.optionals (pythonOlder "3.8") [ 42 + importlib-metadata 43 + ]; 44 + 45 + pythonImportsCheck = [ 46 + "asyncua" 47 + ]; 48 + 49 + checkInputs = [ 50 + pytestCheckHook 51 + pytest-asyncio 52 + pytest-mock 53 + asynctest 54 + ]; 55 + 56 + disabledTests = [ 57 + "test_cli_tools_which_require_sigint" # Hard coded path only works from root of src 58 + ]; 59 + 60 + meta = with lib; { 61 + description = "OPC UA / IEC 62541 Client and Server for Python"; 62 + homepage = "https://github.com/FreeOpcUa/opcua-asyncio"; 63 + license = licenses.lgpl3Plus; 64 + maintainers = with maintainers; [ harvidsen ]; 65 + }; 66 + }
+2
pkgs/top-level/python-packages.nix
··· 702 702 703 703 async-timeout = callPackage ../development/python-modules/async_timeout { }; 704 704 705 + asyncua = callPackage ../development/python-modules/asyncua { }; 706 + 705 707 async-upnp-client = callPackage ../development/python-modules/async-upnp-client { }; 706 708 707 709 asyncwhois = callPackage ../development/python-modules/asyncwhois { };