diff --git a/pkgs/development/python-modules/fritzconnection/default.nix b/pkgs/development/python-modules/fritzconnection/default.nix index 1f359dfdf7c3..9fc2beef2c0d 100644 --- a/pkgs/development/python-modules/fritzconnection/default.nix +++ b/pkgs/development/python-modules/fritzconnection/default.nix @@ -4,26 +4,33 @@ , fetchFromGitHub , pytestCheckHook , requests +, segno }: buildPythonPackage rec { pname = "fritzconnection"; - version = "1.12.2"; + version = "1.13.1"; format = "setuptools"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "kbr"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-e+w3ce6KdvbYzH48XPEQTiBgtjbKWNdQj8ie4yw0rzE="; + hash = "sha256-FTg5LHjti6Srmz1LcPU0bepNzn2tpmdSBM3Y2BzZEms="; }; propagatedBuildInputs = [ requests ]; + passthru.optional-dependencies = { + qr = [ + segno + ]; + }; + nativeCheckInputs = [ pytestCheckHook ]; @@ -36,6 +43,11 @@ buildPythonPackage rec { "fritzconnection" ]; + disabledTestPaths = [ + # Functional tests require network access + "fritzconnection/tests/test_functional.py" + ]; + meta = with lib; { description = "Python module to communicate with the AVM Fritz!Box"; homepage = "https://github.com/kbr/fritzconnection"; diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 298d41646154..80d3c1a189f7 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -1346,13 +1346,15 @@ psutil-home-assistant sqlalchemy xmltodict - ]; # missing inputs: fritzconnection.optional-dependencies.qr + ] + ++ fritzconnection.optional-dependencies.qr; "fritzbox" = ps: with ps; [ pyfritzhome ]; "fritzbox_callmonitor" = ps: with ps; [ fritzconnection - ]; # missing inputs: fritzconnection.optional-dependencies.qr + ] + ++ fritzconnection.optional-dependencies.qr; "fronius" = ps: with ps; [ pyfronius ]; @@ -5032,7 +5034,9 @@ "freebox" "freedns" "freedompro" + "fritz" "fritzbox" + "fritzbox_callmonitor" "fronius" "frontend" "frontier_silicon"