From 76f74c2203e98cecfab47df4c0ad8982bc3cf203 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 5 Apr 2023 22:53:52 +0200 Subject: [PATCH] python310Packages.zigpy-znp: 0.9.3 -> 0.10.0 https://github.com/zigpy/zigpy-znp/releases/tag/v0.10.0 --- .../python-modules/zigpy-znp/default.nix | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/zigpy-znp/default.nix b/pkgs/development/python-modules/zigpy-znp/default.nix index 4ebe9caa9921..63298091f7d1 100644 --- a/pkgs/development/python-modules/zigpy-znp/default.nix +++ b/pkgs/development/python-modules/zigpy-znp/default.nix @@ -1,15 +1,13 @@ { lib , async-timeout -, asynctest , buildPythonPackage , coloredlogs , fetchFromGitHub , jsonschema -, pyserial -, pyserial-asyncio , pytest-asyncio , pytest-mock , pytest-timeout +, pytest-xdist , pytestCheckHook , pythonOlder , voluptuous @@ -18,7 +16,7 @@ buildPythonPackage rec { pname = "zigpy-znp"; - version = "0.9.3"; + version = "0.10.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -27,15 +25,18 @@ buildPythonPackage rec { owner = "zigpy"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-UTL7g9tIXtMVeBRq5Fdw5VqUB9H/LaobASwHlFPoO2s="; + hash = "sha256-pQ1T7MTrL789kd8cbbsjRLUaxd1yHF7sDwow2UksQ7c="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace "timeout = 20" "timeout = 300" + ''; + propagatedBuildInputs = [ async-timeout coloredlogs jsonschema - pyserial - pyserial-asyncio voluptuous zigpy ]; @@ -44,9 +45,18 @@ buildPythonPackage rec { pytest-asyncio pytest-mock pytest-timeout + pytest-xdist pytestCheckHook - ] ++ lib.optionals (pythonOlder "3.8") [ - asynctest + ]; + + pytestFlagsArray = [ + # https://github.com/zigpy/zigpy-znp/issues/209 + "--deselect=tests/application/test_joining.py::test_join_device" + "--deselect=tests/application/test_joining.py::test_permit_join" + "--deselect=tests/application/test_requests.py::test_request_recovery_route_rediscovery_zdo" + "--deselect=tests/application/test_requests.py::test_zigpy_request" + "--deselect=tests/application/test_requests.py::test_zigpy_request_failure" + "--deselect=tests/application/test_zdo_requests.py::test_mgmt_nwk_update_req" ]; pythonImportsCheck = [