From a8a2a2362b75750335687b3d9c4f1af6a744461b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 7 May 2021 00:14:28 +0200 Subject: [PATCH 1/3] python3Packages.plugwise: 0.9.3 -> 0.9.4 --- .../python-modules/plugwise/default.nix | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/plugwise/default.nix b/pkgs/development/python-modules/plugwise/default.nix index 289f1871f338..d62c2e8bb72b 100644 --- a/pkgs/development/python-modules/plugwise/default.nix +++ b/pkgs/development/python-modules/plugwise/default.nix @@ -1,31 +1,31 @@ { lib -, buildPythonPackage -, fetchFromGitHub , aiohttp , async-timeout +, buildPythonPackage , crcmod , defusedxml -, pyserial -, pytz -, python-dateutil -, semver +, fetchFromGitHub , jsonpickle +, munch , mypy +, pyserial , pytest-aiohttp , pytest-asyncio -, pytest-cov , pytestCheckHook +, python-dateutil +, pytz +, semver }: buildPythonPackage rec { pname = "plugwise"; - version = "0.9.3"; + version = "0.9.4"; src = fetchFromGitHub { owner = pname; repo = "python-plugwise"; rev = version; - sha256 = "sha256-MZ4R55vGUyWmR0Md83eNerzsgtYMch1vfQ3sqbm12bM="; + sha256 = "sha256-5r+Xe3EKLjuR7mPGEPOKzhE7G6OzNEClf847Px9VdWU="; }; propagatedBuildInputs = [ @@ -33,9 +33,10 @@ buildPythonPackage rec { async-timeout crcmod defusedxml + munch pyserial - pytz python-dateutil + pytz semver ]; @@ -44,8 +45,6 @@ buildPythonPackage rec { mypy pytest-aiohttp pytest-asyncio - pytest-cov - pytest-asyncio pytestCheckHook ]; From 0f5d490226de05804a3ec6b5fc9d4552efe3ea5f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 7 May 2021 00:16:44 +0200 Subject: [PATCH 2/3] home-assistant: enable plugwise tests --- pkgs/servers/home-assistant/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 22b61c093342..86b8094d202a 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -330,6 +330,7 @@ in with py.pkgs; buildPythonApplication rec { "persistent_notification" "person" "plaato" + "plugwise" "prometheus" "proximity" "push" From cf51b95aea169850208f2e8944d27fb290e1f9b4 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 10 May 2021 21:25:43 +0200 Subject: [PATCH 3/3] home-assistant: add jsonpickle to checkInputs Drop asynctest, it was dropped back in january upstream. These dependencies are sadly not part of the manifest, that we are parsing. --- pkgs/servers/home-assistant/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 86b8094d202a..d44663fc3cec 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -182,17 +182,17 @@ in with py.pkgs; buildPythonApplication rec { doCheck = stdenv.isLinux; checkInputs = [ - # test infrastructure - asynctest + # test infrastructure (selectively from requirement_test.txt) pytest-aiohttp pytest-mock pytest-rerunfailures pytest-xdist pytestCheckHook requests-mock - # component dependencies - pyotp + jsonpickle respx + # required by tests/auth/mfa_modules + pyotp ] ++ lib.concatMap (component: getPackages component py.pkgs) componentTests; # We can reasonably test components that don't communicate with any network