lol

python311Packages.xknx: fix pytest-asyncio 0.22 compat

and some light updates to dependency handling.

+34 -3
+6 -3
pkgs/development/python-modules/xknx/default.nix
··· 8 8 , pytestCheckHook 9 9 , pythonOlder 10 10 , setuptools 11 - , wheel 12 11 }: 13 12 14 13 buildPythonPackage rec { ··· 25 24 hash = "sha256-Fwo76tvkLLx8QJeokuGohhnt83eGBMyWIUSHJGuQWJ4="; 26 25 }; 27 26 27 + patches = [ 28 + ./pytest-asyncio-0.22-compat.patch 29 + ]; 30 + 28 31 nativeBuildInputs = [ 29 32 setuptools 30 - wheel 31 33 ]; 32 34 33 35 propagatedBuildInputs = [ 34 - async-timeout 35 36 cryptography 36 37 ifaddr 38 + ] ++ lib.optionals (pythonOlder "3.11") [ 39 + async-timeout 37 40 ]; 38 41 39 42 nativeCheckInputs = [
+28
pkgs/development/python-modules/xknx/pytest-asyncio-0.22-compat.patch
··· 1 + diff --git a/test/devices_tests/datetime_test.py b/test/devices_tests/datetime_test.py 2 + index af06abc6..2145fcc1 100644 3 + --- a/test/devices_tests/datetime_test.py 4 + +++ b/test/devices_tests/datetime_test.py 5 + @@ -12,11 +12,6 @@ from xknx.telegram.apci import GroupValueRead, GroupValueResponse, GroupValueWri 6 + class TestDateTime: 7 + """Test class for DateTime object.""" 8 + 9 + - # pylint: disable=attribute-defined-outside-init 10 + - def teardown_method(self): 11 + - """Cancel broadcast_task.""" 12 + - self.datetime.__del__() 13 + - 14 + # 15 + # SET Time 16 + # 17 + diff --git a/test/io_tests/secure_session_test.py b/test/io_tests/secure_session_test.py 18 + index cd2dc1d0..ca90e2d9 100644 19 + --- a/test/io_tests/secure_session_test.py 20 + +++ b/test/io_tests/secure_session_test.py 21 + @@ -65,7 +65,6 @@ class TestSecureSession: 22 + 23 + def teardown_method(self): 24 + """Cancel keepalive task.""" 25 + - self.session.stop() 26 + self.patch_serial_number.stop() 27 + self.patch_message_tag.stop() 28 +