git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #154933 from fabaff/fix-homematic

python3Packages.homematicip: disable failing tests

commit2ef62377b37b133dc37f17bb0ff912884615fefb authorFabian Affolter <fabian@affolter-engineering.ch> dateSat 15 Jan 2022, 09:19 (5 years ago) parent816f6e085d37ab
1 file changed+6−5
pkgs/development/python-modules/homematicip/default.nix+6−5
pkgs/development/python-modules/homematicip/default.nix+6−5
@@ -7,6 +7,7 @@
77, fetchFromGitHub
88, fetchpatch
99, pytestCheckHook
10+, pythonAtLeast
1011, pythonOlder
1112, pytest-aiohttp
1213, pytest-asyncio
@@ -54,11 +55,6 @@ buildPythonPackage rec {
5455 pytestCheckHook
5556 ];
5657
57− postPatch = ''
58− substituteInPlace homematicip/aio/connection.py \
59− --replace ", loop=self._loop" ""
60− '';
61−
6258 disabledTests = [
6359 # Assert issues with datetime
6460 "test_contact_interface_device"
@@ -82,6 +78,11 @@ buildPythonPackage rec {
8278 "test_home_unknown_types"
8379 # Requires network access
8480 "test_websocket"
81+ ] ++ lib.optionals (pythonAtLeast "3.10") [
82+ "test_connection_lost"
83+ "test_user_disconnect_and_reconnect"
84+ "test_ws_message"
85+ "test_ws_no_pong"
8586 ];
8687
8788 pythonImportsCheck = [